Replies: 1 comment 4 replies
-
Thanks for the question. We indeed are not allowing customization of on type formatting yet, we need to implement that. And you're right, it's not related to RuboCop.
Because most of that configuration has already been incorporated by the configuration bundled in VS Code itself, so there's no need to maintain a duplicate https://github.com/microsoft/vscode/blob/main/extensions/ruby/language-configuration.json. We do have minimal customization here https://github.com/Shopify/ruby-lsp/blob/main/vscode/languages/ruby.json. Also, language configuration only works for VS Code (and forks) and we try to provide as many features as possible to all editors, so implementing certain things in the server has that advantage. Can I ask what you find annoying about the pipe on type completions? Maybe there's a way we can improve the feature rather than allowing it to be turned off. |
Beta Was this translation helpful? Give feedback.
-
How can I customize formatOnType behavior please?
I want to disable autoclose for the pipe operator, as I find it really annoying. I tried overloading "editor.autoClosingPairs" but that doesn't seem to work. Why is there no language config like there used to be for vscode-ruby?
e.g. https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby/language-configuration-ruby.json
I'm using :
"[ruby]": {
"editor.defaultFormatter": "rubocop.vscode-rubocop",
"editor.formatOnType": true,
...
but this isn't a rubocop issue, is it?
thanks in advance for any help
Beta Was this translation helpful? Give feedback.
All reactions