From f593f77690ce69c57128bb0cf20734f97fe8d598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 25 Jan 2019 15:22:04 +0800 Subject: =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=E6=97=B6=E4=BC=9A?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=BC=96=E8=AF=91=E5=85=B3=E8=81=94=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/src') 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() -- cgit v1.2.3