diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-22 16:44:38 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-22 16:44:38 +0800 |
commit | 6f4cf8d4f2551672e3bc0fe472445485c3acbe3f (patch) | |
tree | 7865be2f1f6cc527c2db986295d697d0969075af /server/src/method/workspace/didChangeWatchedFiles.lua | |
parent | 5df9959be4a51ab567743b72753f15a24b8f7ef6 (diff) | |
download | lua-language-server-6f4cf8d4f2551672e3bc0fe472445485c3acbe3f.zip |
删除文件后清空缓存
Diffstat (limited to 'server/src/method/workspace/didChangeWatchedFiles.lua')
-rw-r--r-- | server/src/method/workspace/didChangeWatchedFiles.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/src/method/workspace/didChangeWatchedFiles.lua b/server/src/method/workspace/didChangeWatchedFiles.lua index 8f0feecd..a5fecac3 100644 --- a/server/src/method/workspace/didChangeWatchedFiles.lua +++ b/server/src/method/workspace/didChangeWatchedFiles.lua @@ -14,8 +14,6 @@ return function (lsp, params) lsp.workspace:addFile(change.uri) elseif change.type == FileChangeType.Deleted then lsp.workspace:removeFile(change.uri) - -- 删除文件后,清除该文件的诊断 - lsp:clearDiagnostics(change.uri) end if lsp:getVM(change.uri) then needReset = true |