summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/definition.lua
diff options
context:
space:
mode:
authorunknown <sumnekosun@intranet.123u.com>2019-04-01 19:08:52 +0800
committerunknown <sumnekosun@intranet.123u.com>2019-04-01 19:08:52 +0800
commit6bd19d31f2f666682fcd04c5436ece8c0bb9b56c (patch)
treeae8fde9a08822798d38f08a51f8e369e932579d1 /server/src/method/textDocument/definition.lua
parent18f29ff095eaa34ae365afe9a7a74d5d006cc18f (diff)
downloadlua-language-server-6bd19d31f2f666682fcd04c5436ece8c0bb9b56c.zip
确实找不到定义就返回空
Diffstat (limited to 'server/src/method/textDocument/definition.lua')
-rw-r--r--server/src/method/textDocument/definition.lua3
1 files changed, 3 insertions, 0 deletions
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