From fa7d041c26aa6616c13a62274a7fc8458f6096dd Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 5 Nov 2017 21:41:53 +0000 Subject: Fix #1085 - Add a final newline character to tsserver and LSP messages --- test/lsp/test_lsp_client_messages.vader | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/lsp/test_lsp_client_messages.vader') diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader index 7ec905cc..a7660ce3 100644 --- a/test/lsp/test_lsp_client_messages.vader +++ b/test/lsp/test_lsp_client_messages.vader @@ -45,7 +45,7 @@ Execute(ale#lsp#message#DidOpen() should return correct messages): \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), \ 'languageId': 'typescript', \ 'version': 12, - \ 'text': "foo()\nbar()\nbaz()", + \ 'text': "foo()\nbar()\nbaz()\n", \ }, \ } \ ], @@ -63,7 +63,7 @@ Execute(ale#lsp#message#DidChange() should return correct messages): \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'), \ 'version': 34, \ }, - \ 'contentChanges': [{'text': "foo()\nbar()\nbaz()"}], + \ 'contentChanges': [{'text': "foo()\nbar()\nbaz()\n"}], \ } \ ], \ ale#lsp#message#DidChange(bufnr('')) @@ -134,7 +134,7 @@ Execute(ale#lsp#tsserver_message#Change() should return correct messages): \ 'offset': 1, \ 'endLine': 1073741824, \ 'endOffset': 1, - \ 'insertString': "foo()\nbar()\nbaz()", + \ 'insertString': "foo()\nbar()\nbaz()\n", \ } \ ], \ ale#lsp#tsserver_message#Change(bufnr('')) -- cgit v1.2.3