summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/method/textDocument/definition.lua3
-rw-r--r--server/src/method/textDocument/implementation.lua3
-rw-r--r--server/src/method/textDocument/references.lua3
3 files changed, 9 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
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