mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-17 19:41:27 +08:00
LSP configuration via didChangeConfiguration (#1852)
* adding LSP configuration via workspace/didChangeConfiguration
This commit is contained in:
1 parent
f57ad883f2
commit
2000436dfd
5 files changed
+66
-1
No files matched your search
@@ -175,6 +175,22 @@ Execute(ale#lsp#message#Hover() should return correct messages):
|
||||
\ ],
|
||||
\ ale#lsp#message#Hover(bufnr(''), 12, 34)
|
||||
|
||||
Execute(ale#lsp#message#DidChangeConfiguration() should return correct messages):
|
||||
let g:ale_lsp_configuration = {
|
||||
\ 'foo': 'bar'
|
||||
\ }
|
||||
AssertEqual
|
||||
\ [
|
||||
\ 0,
|
||||
\ 'workspace/didChangeConfiguration',
|
||||
\ {
|
||||
\ 'settings': {
|
||||
\ 'foo': 'bar',
|
||||
\ }
|
||||
\ }
|
||||
\ ],
|
||||
\ ale#lsp#message#DidChangeConfiguration(bufnr(''), g:ale_lsp_configuration)
|
||||
|
||||
Execute(ale#lsp#tsserver_message#Open() should return correct messages):
|
||||
AssertEqual
|
||||
\ [
|
||||
|
||||
Reference in new issue
Block a user