vscode-solargraph
vscode-solargraph copied to clipboard
Rubocop format selection
I have formatting working on the whole document, but I'm wondering if its possible to format just a selection?
If I try I end up getting this:
There is no selection formatter for 'ruby'-files installed.
Not sure if this exists already somehow, or if this is out of the scope of this repository?
The LSP specification covers it with a feature called rangeFormatting, but Solargraph doesn't support it yet. I'll need to determine whether the RuboCop formatting tools can handle it.