mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add initialization_options to Sorbet LSP linter (#4954)
* Add initialization_options to Sorbet LSP linter Using a predefined object will ensure that Sorbet always receives an object instead of an array. LSP defines the initializationOptions as anything. Unfortunately Sorbet is too strict and raises an error when anything other than an object is passed which causes the linter to fail * Document empty objects will prevent Sorbet from properly initializing
This commit is contained in:
@@ -267,6 +267,23 @@ g:ale_ruby_sorbet_enable_watchman
|
||||
to files from outside of vim. Defaults to disable watchman because it
|
||||
requires watchman to be installed separately from sorbet.
|
||||
|
||||
*ale-options.ruby_sorbet_initialization_options*
|
||||
*g:ale_ruby_sorbet_initialization_options*
|
||||
*b:ale_ruby_sorbet_initialization_options*
|
||||
ruby_sorbet_initialization_options
|
||||
g:ale_ruby_sorbet_initialization_options
|
||||
Type: |Dictionary|
|
||||
Default: `{ 'highlightUntyped': v:false }`
|
||||
|
||||
This variable can be changed to modify initialization options provided to
|
||||
the Sorbet language server. By default, a minimal object with defaults is
|
||||
provided to ensure proper LSP initialization.
|
||||
|
||||
Setting this variable to a an empty object will cause sorbet LSP to
|
||||
fail during initialization.
|
||||
|
||||
See https://sorbet.org/docs/lsp#initialize-request for available options.
|
||||
|
||||
|
||||
===============================================================================
|
||||
standardrb *ale-ruby-standardrb*
|
||||
|
||||
Reference in New Issue
Block a user