Cover the Rust LSP with tests, allow LSP linters to be named anything, and rename the Rust LSP linter to rls

This commit is contained in:
w0rp
2017-08-02 23:21:30 +01:00
parent 617582c5d3
commit 09d50ebe31
8 changed files with 91 additions and 45 deletions

View File

@@ -15,7 +15,7 @@ Execute(tsserver syntax error responses should be handled correctly):
" When we get syntax errors and no semantic errors, we should keep the
" syntax errors.
call ale#engine#HandleLSPResponse({
call ale#engine#HandleLSPResponse(1, {
\ 'seq': 0,
\ 'type': 'event',
\ 'event': 'syntaxDiag',
@@ -37,7 +37,7 @@ Execute(tsserver syntax error responses should be handled correctly):
\ ],
\ },
\})
call ale#engine#HandleLSPResponse({
call ale#engine#HandleLSPResponse(1, {
\ 'seq': 0,
\ 'type': 'event',
\ 'event': 'semanticDiag',
@@ -65,7 +65,7 @@ Execute(tsserver syntax error responses should be handled correctly):
\ getloclist(0)
" After we get empty syntax errors, we should clear them.
call ale#engine#HandleLSPResponse({
call ale#engine#HandleLSPResponse(1, {
\ 'seq': 0,
\ 'type': 'event',
\ 'event': 'syntaxDiag',
@@ -88,7 +88,7 @@ Execute(tsserver semantic error responses should be handled correctly):
" When we get syntax errors and no semantic errors, we should keep the
" syntax errors.
call ale#engine#HandleLSPResponse({
call ale#engine#HandleLSPResponse(1, {
\ 'seq': 0,
\ 'type': 'event',
\ 'event': 'syntaxDiag',
@@ -98,7 +98,7 @@ Execute(tsserver semantic error responses should be handled correctly):
\ ],
\ },
\})
call ale#engine#HandleLSPResponse({
call ale#engine#HandleLSPResponse(1, {
\ 'seq': 0,
\ 'type': 'event',
\ 'event': 'semanticDiag',
@@ -138,7 +138,7 @@ Execute(tsserver semantic error responses should be handled correctly):
\ getloclist(0)
" After we get empty syntax errors, we should clear them.
call ale#engine#HandleLSPResponse({
call ale#engine#HandleLSPResponse(1, {
\ 'seq': 0,
\ 'type': 'event',
\ 'event': 'semanticDiag',