misogi / vscode-ruby-rubocop

Rubocop extension for Visual Studio Code
https://marketplace.visualstudio.com/items/misogi.ruby-rubocop
MIT License
137 stars 68 forks source link

Make Ruby: autocorrect by rubocop work even when Rubocop isn't the default formatter. #172

Open jvilk-stripe opened 2 years ago

jvilk-stripe commented 2 years ago

This change makes the "Ruby: autocorrect by rubocop" command work even when Rubocop isn't the default formatter.

Before this change, if Rubocop is not the default formatter, running "Rubocop: autocorrect by rubocop" would run the default formatter and not Rubocop.

Now, this command manually applies Rubocop's autocorrects to the current document.

We are encountering this bug at Stripe and would love it if this fix could be merged and a new version of the extension released. :)

LoranKloeze commented 2 years ago

This issue is fixed in https://github.com/LoranKloeze/vscode-ruby-rubocop-revived/issues/1 and published to the marketplace at https://marketplace.visualstudio.com/items?itemName=LoranKloeze.ruby-rubocop-revived. Thx for reporting!