summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-10 19:13:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-10 19:13:12 +0800
commit1793f1a492c57361950065527215d282ca5831cf (patch)
treea9358bbe70c229d4c95f5b34c626815c7b0e5dd9
parente26144f912a1211e41892eff84d93375fe53d900 (diff)
downloadlua-language-server-1793f1a492c57361950065527215d282ca5831cf.zip
还是把文件关了,否则太占内存
-rw-r--r--server/src/method/textDocument/didClose.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/method/textDocument/didClose.lua b/server/src/method/textDocument/didClose.lua
index d7f2841a..d4edb624 100644
--- a/server/src/method/textDocument/didClose.lua
+++ b/server/src/method/textDocument/didClose.lua
@@ -1,5 +1,5 @@
return function (lsp, params)
local doc = params.textDocument
- --lsp:removeText(doc.uri, doc.version)
+ lsp:removeText(doc.uri, doc.version)
return true
end