-
Notifications
You must be signed in to change notification settings - Fork 286
Add option to specify formatter command #548
Comments
Would like to see this as well. Perhaps just an option for rubocop path which the linter and formatter can use. |
I would also like this.
|
Also interested. Assuming you're using the language server the relevant code difference is: vscode-ruby/packages/language-server-ruby/src/Linter.ts Lines 27 to 48 in b232cfd
vs. vscode-ruby/packages/language-server-ruby/src/Formatter.ts Lines 29 to 54 in b232cfd
|
@wingrunr21 hi, just wondering if this is something you'd like to implement in the future? :) Could really help with rubocop-daemon integration. |
What are the issues that prevent rubocop from being fed a different or custom path for linting vs. formatting? |
Your environment
vscode-ruby
version: 0.25.3useLanguageServer
is true?) YesExpected behavior
I have a rails project setup with rubocop as the linter & formatter, and the
spring-commands-rubocop
gem to try and speed things up. The linter portion of the extension for this setup works great, but there's no option to use the formatter with it. It'd be nice to have the same options for running formatters that there is for linters so this way I can specify my spring binstub for the rubocop formatter. Here's an example config of what I'd like:And what the output of "Ruby Language Server" would show:
Actual behavior
The current behavior doesn't allow selecting a command path for the formatter, instead only supporting a toggle of running through
bundle exec
. This doesn't allow for formatters to be ran throughspring
, which could potentially save time on formatter execution.Current config:
Current output:
The text was updated successfully, but these errors were encountered: