A method of controlling a grid-connected voltage source converter, VSC , using power-synchronisation control, wherein the method comprises: determining a VSC phase angle (θ) based on an integration of including a scaled active power control error, determining a damping component based on a virtual damping resistance (R a ), a VSC current vector ( i ) and a reference current vector ( i ref ) for the VSC current vector ( i ), determining a voltage vector ( v ) based on a VSC voltage magnitude (V) and the damping component, transforming the voltage vector ( v ) to a current vector i ref inner , comparing a magnitude of the current vector i ref inner with a maximum threshold current value (I max ), and in case the magnitude of the current vector i ref inner is greater than the maximum threshold current value (I max ): reducing the magnitude of the current vector i ref inner to a value below or equal to the maximum threshold current value (I max ) to obtain a limited current vector i ref inner , limited , transforming the limited current vector i ref inner , limited to a limited voltage vector ( v limited ), controlling the VSC based on the VSC phase angle (θ) and the limited voltage vector ( v limited ), multiplying an imaginary part (v pq ) of a voltage of common coupling with a gain to obtain a scaled imaginary part of the voltage of common coupling, wherein, in case the magnitude of the current vector i ref inner is greater than the maximum threshold current value (I max ), the VSC phase angle (θ) is determined based on an integration of a sum including the scaled active power control error and the scaled imaginary part of the voltage of common coupling. determining a VSC phase angle (θ) based on an integration of including a scaled active power control error, determining a damping component based on a virtual damping resistance (R a ), a VSC current vector ( i ) and a reference current vector ( i ref ) for the VSC current vector ( i ), determining a voltage vector ( v ) based on a VSC voltage magnitude (V) and the damping component, transforming the voltage vector ( v ) to a current vector i ref inner , comparing a magnitude of the current vector i ref inner with a maximum threshold current value (I max ), and in case the magnitude of the current vector i ref inner is greater than the maximum threshold current value (I max ): reducing the magnitude of the current vector i ref inner to a value below or equal to the maximum threshold current value (I max ) to obtain a limited current vector i ref inner , limited , transforming the limited current vector i ref inner , limited to a limited voltage vector ( v limited ), controlling the VSC based on the VSC phase angle (θ) and the limited voltage vector ( v limited ), multiplying an imaginary part (v pq ) of a voltage of common coupling with a gain to obtain a scaled imaginary part of the voltage of common coupling, reducing the magnitude of the current vector i ref inner to a value below or equal to the maximum threshold current value (I max ) to obtain a limited current vector i ref inner , limited , transforming the limited current vector i ref inner , limited to a limited voltage vector ( v limited ), controlling the VSC based on the VSC phase angle (θ) and the limited voltage vector ( v limited ), multiplying an imaginary part (v pq ) of a voltage of common coupling with a gain to obtain a scaled imaginary part of the voltage of common coupling, wherein, in case the magnitude of the current vector i ref inner is greater than the maximum threshold current value (I max ), the VSC phase angle (θ) is determined based on an integration of a sum including the scaled active power control error and the scaled imaginary part of the voltage of common coupling. <EOS>