summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-24 16:27:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-24 16:27:10 +0800
commitcdb3b46b433a52f1533ce432b2337527df1b443e (patch)
treece0e510d247632e667f604e72e2f88d6435bcd1b /server/src
parentf058262bcf81760a9d5e26a2716333f5de17e702 (diff)
downloadlua-language-server-cdb3b46b433a52f1533ce432b2337527df1b443e.zip
调整位置
Diffstat (limited to 'server/src')
-rw-r--r--server/src/service.lua15
1 files changed, 7 insertions, 8 deletions
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 ()