mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
Settings to control suggestions.
This commit is contained in:
@@ -159,6 +159,7 @@ function! ale#lsp_linter#HandleLSPResponse(conn_id, response) abort
|
|||||||
call s:HandleTSServerDiagnostics(a:response, 'syntax')
|
call s:HandleTSServerDiagnostics(a:response, 'syntax')
|
||||||
elseif get(a:response, 'type', '') is# 'event'
|
elseif get(a:response, 'type', '') is# 'event'
|
||||||
\&& get(a:response, 'event', '') is# 'suggestionDiag'
|
\&& get(a:response, 'event', '') is# 'suggestionDiag'
|
||||||
|
\&& get(g:, 'ale_lsp_suggestions', '1') == 1
|
||||||
call s:HandleTSServerDiagnostics(a:response, 'suggestion')
|
call s:HandleTSServerDiagnostics(a:response, 'suggestion')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
@@ -1677,6 +1677,15 @@ g:ale_lsp_show_message_severity *g:ale_lsp_show_message_severity*
|
|||||||
`'disabled'` - Doesn't display any information at all.
|
`'disabled'` - Doesn't display any information at all.
|
||||||
|
|
||||||
|
|
||||||
|
g:ale_lsp_suggestions *g:ale_lsp_suggestions*
|
||||||
|
|
||||||
|
Type: |Number|
|
||||||
|
Default: 1
|
||||||
|
|
||||||
|
This variable defines if suggestions must be collected from LSP or tsserver
|
||||||
|
and shown.
|
||||||
|
|
||||||
|
|
||||||
g:ale_lsp_root *g:ale_lsp_root*
|
g:ale_lsp_root *g:ale_lsp_root*
|
||||||
*b:ale_lsp_root*
|
*b:ale_lsp_root*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user