From f637a34ca04a4f503e08ea977b44db9a26c641c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Mar 2019 17:32:48 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/documentSymbol.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/src/method/textDocument') diff --git a/server/src/method/textDocument/documentSymbol.lua b/server/src/method/textDocument/documentSymbol.lua index 201137c8..915c0126 100644 --- a/server/src/method/textDocument/documentSymbol.lua +++ b/server/src/method/textDocument/documentSymbol.lua @@ -44,6 +44,11 @@ return function (lsp, params) timerCache[uri] = ac.loop(0.1, function (t) local vm, lines = lsp:getVM(uri) if not vm then + if not lsp:isWaitingCompile() then + t:remove() + timerCache[uri] = nil + response(nil) + end return end -- cgit v1.2.3