From cdb3b46b433a52f1533ce432b2337527df1b443e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 24 Jan 2019 16:27:10 +0800 Subject: =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'server/src') diff --git a/server/src/service.lua b/server/src/service.lua index 8a06f5a5..59996733 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -204,14 +204,6 @@ function mt:reCompile() n = n + 1 end log.debug('reCompile:', n) - - if self._needShowComplete then - self._needShowComplete = nil - rpc:notify('window/showMessage', { - type = 3, - message = lang.script.MWS_COMPLETE, - }) - end end function mt:loadVM(uri) @@ -444,6 +436,13 @@ end function mt:_createCompileTask() if not self:isWaitingCompile() and not next(self._needDiagnostics) then + if self._needShowComplete then + self._needShowComplete = nil + rpc:notify('window/showMessage', { + type = 3, + message = lang.script.MWS_COMPLETE, + }) + end return end self._compileTask = coroutine.create(function () -- cgit v1.2.3