summaryrefslogtreecommitdiff
path: root/test/lsp/test_lsp_client_messages.vader
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2021-10-07 07:48:54 -0400
committerGitHub <noreply@github.com>2021-10-07 20:48:54 +0900
commit42a6e039cb36fbc5a60215b2be55e54c364b15e9 (patch)
tree12f5d3affc4ff27a844c819656dd67e99365ec1a /test/lsp/test_lsp_client_messages.vader
parent34a972f85d0aa80997b7b0ac36c667a6137ce9a0 (diff)
downloadale-42a6e039cb36fbc5a60215b2be55e54c364b15e9.zip
Implement textDocument/didSave includeText optional argument (#3925)
Diffstat (limited to 'test/lsp/test_lsp_client_messages.vader')
-rw-r--r--test/lsp/test_lsp_client_messages.vader17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader
index 754073ec..4c6b0ffa 100644
--- a/test/lsp/test_lsp_client_messages.vader
+++ b/test/lsp/test_lsp_client_messages.vader
@@ -88,7 +88,22 @@ Execute(ale#lsp#message#DidSave() should return correct messages):
\ },
\ }
\ ],
- \ ale#lsp#message#DidSave(bufnr(''))
+ \ ale#lsp#message#DidSave(bufnr(''), v:false)
+
+Execute(ale#lsp#message#DidSave() should return correct message with includeText capability):
+ AssertEqual
+ \ [
+ \ 1,
+ \ 'textDocument/didSave',
+ \ {
+ \ 'textDocument': {
+ \ 'uri': ale#path#ToURI(g:dir . '/foo/bar.ts'),
+ \ 'version': 1,
+ \ },
+ \ 'text': ale#util#GetBufferContents(bufnr('')),
+ \ }
+ \ ],
+ \ ale#lsp#message#DidSave(bufnr(''), v:true)
Execute(ale#lsp#message#DidClose() should return correct messages):
AssertEqual