diff options
Diffstat (limited to 'server/src/method')
-rw-r--r-- | server/src/method/textDocument/didClose.lua | 1 | ||||
-rw-r--r-- | server/src/method/textDocument/didOpen.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/server/src/method/textDocument/didClose.lua b/server/src/method/textDocument/didClose.lua index d7f2841a..5da33010 100644 --- a/server/src/method/textDocument/didClose.lua +++ b/server/src/method/textDocument/didClose.lua @@ -1,5 +1,6 @@ return function (lsp, params) local doc = params.textDocument --lsp:removeText(doc.uri, doc.version) + lsp:close(doc.uri) return true end diff --git a/server/src/method/textDocument/didOpen.lua b/server/src/method/textDocument/didOpen.lua index 27fdda71..b6710d6b 100644 --- a/server/src/method/textDocument/didOpen.lua +++ b/server/src/method/textDocument/didOpen.lua @@ -1,5 +1,6 @@ return function (lsp, params) local doc = params.textDocument lsp:saveText(doc.uri, doc.version, doc.text) + lsp:open(doc.uri) return true end |