mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Close #4458 - Add an ALEStopLSP command
Add an ALEStopLSP command to stop all language servers that match a given name. Completions are available for the command. This makes it possible to keep other language servers running other than the one you're interested in stopping.
This commit is contained in:
16
doc/ale.txt
16
doc/ale.txt
@@ -455,6 +455,11 @@ If you want to use another plugin for LSP features and tsserver, you can use
|
||||
the |g:ale_disable_lsp| setting to disable ALE's own LSP integrations, or
|
||||
ignore particular linters with |g:ale_linters_ignore|.
|
||||
|
||||
If for any reason you want to stop a language server ALE starts, such as when
|
||||
a project configuration has significantly changed, or new files have been
|
||||
added the language server isn't aware of, use either |ALEStopLSP| or
|
||||
|ALEStopAllLSPs| to stop the server until ALE automatically starts it again.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
5.1 Completion *ale-completion*
|
||||
|
||||
@@ -3931,6 +3936,17 @@ ALEStopAllLSPs *ALEStopAllLSPs*
|
||||
This command can be used when LSP clients mess up and need to be restarted.
|
||||
|
||||
|
||||
ALEStopLSP `linter_name` *ALEStopLSP*
|
||||
|
||||
`ALEStopLSP` will stop a specific language server with a given linter name.
|
||||
Completion is supported for currently running language servers. All language
|
||||
servers with the given name will be stopped across all buffers for all
|
||||
projects.
|
||||
|
||||
If the command is run with a bang (`:ALEStopLSP!`), all warnings will be
|
||||
suppressed.
|
||||
|
||||
|
||||
===============================================================================
|
||||
9. API *ale-api*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user