From 6bd19d31f2f666682fcd04c5436ece8c0bb9b56c Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 1 Apr 2019 19:08:52 +0800 Subject: =?UTF-8?q?=E7=A1=AE=E5=AE=9E=E6=89=BE=E4=B8=8D=E5=88=B0=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=B0=B1=E8=BF=94=E5=9B=9E=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/definition.lua | 3 +++ server/src/method/textDocument/implementation.lua | 3 +++ server/src/method/textDocument/references.lua | 3 +++ 3 files changed, 9 insertions(+) (limited to 'server/src') diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua index c2880f7e..07f0f3d8 100644 --- a/server/src/method/textDocument/definition.lua +++ b/server/src/method/textDocument/definition.lua @@ -84,6 +84,9 @@ return function (lsp, params) end LastTask:remove() LastTask = nil + if not result then + response(nil) + end end) end end diff --git a/server/src/method/textDocument/implementation.lua b/server/src/method/textDocument/implementation.lua index 64bb4fe4..250909cb 100644 --- a/server/src/method/textDocument/implementation.lua +++ b/server/src/method/textDocument/implementation.lua @@ -83,6 +83,9 @@ return function (lsp, params) end LastTask:remove() LastTask = nil + if not result then + response(nil) + end end) end end diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua index 7213e590..13ddbe41 100644 --- a/server/src/method/textDocument/references.lua +++ b/server/src/method/textDocument/references.lua @@ -67,6 +67,9 @@ return function (lsp, params) end t:remove() LastTask = nil + if not positions then + response(nil) + end end) end end -- cgit v1.2.3