diff options
author | Fred Emmott <fe@fb.com> | 2018-08-15 14:40:51 -0700 |
---|---|---|
committer | Fred Emmott <fe@fb.com> | 2018-08-15 14:40:51 -0700 |
commit | 764da48c576c2be6b6d02ae6a7f59f9167b11de3 (patch) | |
tree | babe485ffc5e8359086038e13b3c87a3fb0d932c /test/lsp | |
parent | c467db3ed99dc7c911ddb1fefa9d66ac84fc76a6 (diff) | |
download | ale-764da48c576c2be6b6d02ae6a7f59f9167b11de3.zip |
Test file was the wrong way around
Diffstat (limited to 'test/lsp')
-rw-r--r-- | test/lsp/test_read_lsp_diagnostics.vader | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/lsp/test_read_lsp_diagnostics.vader b/test/lsp/test_read_lsp_diagnostics.vader index 6708ad2f..d795ae29 100644 --- a/test/lsp/test_read_lsp_diagnostics.vader +++ b/test/lsp/test_read_lsp_diagnostics.vader @@ -149,6 +149,13 @@ Execute(ale#lsp#response#ReadDiagnostics() should use relatedInformation for det \ 'col': 3, \ 'end_lnum': 1, \ 'end_col': 3, + \ 'detail': "Something went wrong!\n/tmp/someotherfile.txt:42:79:\n\tmight be this" + \ } + \ ], + \ ale#lsp#response#ReadDiagnostics({'params': {'uri': 'filename.ts', 'diagnostics': [ + \ { + \ 'range': Range(0, 2, 0, 2), + \ 'message': 'Something went wrong!', \ 'relatedInformation': [{ \ 'message': 'might be this', \ 'location': { @@ -160,13 +167,6 @@ Execute(ale#lsp#response#ReadDiagnostics() should use relatedInformation for det \ } \ }] \ } - \ ], - \ ale#lsp#response#ReadDiagnostics({'params': {'uri': 'filename.ts', 'diagnostics': [ - \ { - \ 'range': Range(0, 2, 0, 2), - \ 'message': 'Something went wrong!', - \ 'detail': "Something went wrong!\n/tmp/someotherfile.txt:42:79:\n\tmight be this" - \ } \ ]}}) Execute(ale#lsp#response#ReadTSServerDiagnostics() should handle tsserver responses): |