diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-25 15:22:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-25 15:22:04 +0800 |
commit | f593f77690ce69c57128bb0cf20734f97fe8d598 (patch) | |
tree | 2dbdf07f7644195cc76a61d140b8315ff845682b /server/src | |
parent | 2a7088c27bd89398f2fd68aac339470811bffdaa (diff) | |
download | lua-language-server-f593f77690ce69c57128bb0cf20734f97fe8d598.zip |
删除文件时会重新编译关联文件
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/service.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index 0eb62121..a7d97614 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -193,11 +193,9 @@ function mt:readText(uri, path, buf) end function mt:removeText(uri) + self:saveText(uri, -1, '') + self:compileVM(uri) self._file[uri] = nil - -- 删除文件后,清除该文件的诊断 - self:clearDiagnostics(uri) - -- 清除全局变量 - self._global:clearGlobal(uri) end function mt:reCompile() |