summaryrefslogtreecommitdiff
path: root/server-beta/src/proto
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-24 17:14:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-24 17:14:41 +0800
commit8b7e91c28278f492520d3787428d319c562d00ff (patch)
treebc3d64be5a6a7be199a7fe9244e00042d21d2253 /server-beta/src/proto
parentd3747e09567909eed1917c65b19eeef24315e3dd (diff)
downloadlua-language-server-8b7e91c28278f492520d3787428d319c562d00ff.zip
根据配置排除文件
Diffstat (limited to 'server-beta/src/proto')
-rw-r--r--server-beta/src/proto/provider.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server-beta/src/proto/provider.lua b/server-beta/src/proto/provider.lua
index 3fdbd34c..4eb1a669 100644
--- a/server-beta/src/proto/provider.lua
+++ b/server-beta/src/proto/provider.lua
@@ -110,6 +110,9 @@ proto.on('workspace/configuration', function ()
updateConfig()
end)
+proto.on('workspace/didChangeWatchedFiles', function (params)
+end)
+
proto.on('textDocument/didOpen', function (params)
local doc = params.textDocument
local uri = doc.uri
@@ -122,6 +125,9 @@ proto.on('textDocument/didClose', function (params)
local doc = params.textDocument
local uri = doc.uri
files.close(uri)
+ if not files.isLua(uri) then
+ files.remove(uri)
+ end
end)
proto.on('textDocument/didChange', function (params)