From 2768bf15ba5ca95f126405459c4a8180e814af18 Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Mon, 30 Jul 2018 15:19:59 -0700 Subject: Handle LSP codes for `%code%` in message formats fixes #1767 --- test/test_engine_lsp_response_handling.vader | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_engine_lsp_response_handling.vader') diff --git a/test/test_engine_lsp_response_handling.vader b/test/test_engine_lsp_response_handling.vader index 517d82c0..ddcd7b2e 100644 --- a/test/test_engine_lsp_response_handling.vader +++ b/test/test_engine_lsp_response_handling.vader @@ -62,6 +62,7 @@ Execute(tsserver syntax error responses should be handled correctly): \ 'col': 14, \ 'vcol': 0, \ 'nr': 1005, + \ 'code': '1005', \ 'type': 'E', \ 'text': ''','' expected.', \ 'valid': 1, @@ -135,6 +136,7 @@ Execute(tsserver semantic error responses should be handled correctly): \ 'col': 14, \ 'vcol': 0, \ 'nr': 1005, + \ 'code': '1005', \ 'type': 'E', \ 'text': 'Some semantic error', \ 'valid': 1, -- cgit v1.2.3 From 649934230bf9e10d3597814986cffca955b2fe05 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 2 Aug 2018 19:32:57 +0100 Subject: Fix the failing tsserver test --- test/test_engine_lsp_response_handling.vader | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/test_engine_lsp_response_handling.vader') diff --git a/test/test_engine_lsp_response_handling.vader b/test/test_engine_lsp_response_handling.vader index ddcd7b2e..818659db 100644 --- a/test/test_engine_lsp_response_handling.vader +++ b/test/test_engine_lsp_response_handling.vader @@ -62,9 +62,8 @@ Execute(tsserver syntax error responses should be handled correctly): \ 'col': 14, \ 'vcol': 0, \ 'nr': 1005, - \ 'code': '1005', \ 'type': 'E', - \ 'text': ''','' expected.', + \ 'text': '1005: '','' expected.', \ 'valid': 1, \ 'pattern': '', \ }, @@ -136,9 +135,8 @@ Execute(tsserver semantic error responses should be handled correctly): \ 'col': 14, \ 'vcol': 0, \ 'nr': 1005, - \ 'code': '1005', \ 'type': 'E', - \ 'text': 'Some semantic error', + \ 'text': '1005: Some semantic error', \ 'valid': 1, \ 'pattern': '', \ }, -- cgit v1.2.3 From 709788084f1f4501060db241d50a4e34bba63181 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 30 Oct 2018 20:55:35 +0000 Subject: Try to fix the tests on Windows --- test/test_engine_lsp_response_handling.vader | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_engine_lsp_response_handling.vader') diff --git a/test/test_engine_lsp_response_handling.vader b/test/test_engine_lsp_response_handling.vader index 818659db..04f12ad6 100644 --- a/test/test_engine_lsp_response_handling.vader +++ b/test/test_engine_lsp_response_handling.vader @@ -2,6 +2,8 @@ Before: Save g:ale_buffer_info Save g:ale_lsp_error_messages + let g:ale_buffer_info = {} + unlet! g:ale_lsp_error_messages call ale#test#SetDirectory('/testplugin/test') -- cgit v1.2.3