diff options
author | unknown <sumnekosun@intranet.123u.com> | 2019-04-01 19:08:52 +0800 |
---|---|---|
committer | unknown <sumnekosun@intranet.123u.com> | 2019-04-01 19:08:52 +0800 |
commit | 6bd19d31f2f666682fcd04c5436ece8c0bb9b56c (patch) | |
tree | ae8fde9a08822798d38f08a51f8e369e932579d1 /server/src/method/textDocument/definition.lua | |
parent | 18f29ff095eaa34ae365afe9a7a74d5d006cc18f (diff) | |
download | lua-language-server-6bd19d31f2f666682fcd04c5436ece8c0bb9b56c.zip |
确实找不到定义就返回空
Diffstat (limited to 'server/src/method/textDocument/definition.lua')
-rw-r--r-- | server/src/method/textDocument/definition.lua | 3 |
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 |