Add option for supported language
There are several RuboCop extensions that target non-Ruby files.
- https://github.com/rubocop/rubocop-md
- https://github.com/r7kamura/rubocop-erb
- https://github.com/r7kamura/rubocop-slim
However, since VSCode is not informed that this extension should activate for files like markdown or erb, diagnostics and auto-corrections cannot be displayed in VSCode.
This change allows you to add languages that can be used in VSCode settings, enabling the extension to be used for these languages.
Settings screen shot
Example for erb
I also has released https://github.com/ksss/rubocop-on-rbs .
It needs language support for rbs.
I would appreciate it if you could consider this change.
@koic This change is still useful to me today and I would love to share it with other users. Would you mind sharing your current thoughts on this change?
@koic It's very useful
For users who are not familiar with how to use it, it may be unclear which parameter values should be set in which situations. Can you add some explanations or guidance to the README to help clarify this?
@koic Thanks for the response! I've updated the README.
Can you squash your commits into one?
Squashed!
vscode-rubocop 0.8.0 has been released and is available in the Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=rubocop.vscode-rubocop
Thank you!