summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument/definition.lua')
-rw-r--r--server/src/method/textDocument/definition.lua14
1 files changed, 1 insertions, 13 deletions
diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua
index 50076c1c..d33fd739 100644
--- a/server/src/method/textDocument/definition.lua
+++ b/server/src/method/textDocument/definition.lua
@@ -1,15 +1,5 @@
local core = require 'core'
-local function checkWorkSpaceComplete(lsp, source)
- if not source:bindValue() then
- return
- end
- if not source:bindValue():get 'cross file' then
- return
- end
- lsp:checkWorkSpaceComplete()
-end
-
local function findResult(lsp, params)
local uri = params.textDocument.uri
local vm, lines = lsp:loadVM(uri)
@@ -24,9 +14,7 @@ local function findResult(lsp, params)
return nil
end
- checkWorkSpaceComplete(lsp, source)
-
- local positions, isGlobal = core.definition(vm, source, lsp)
+ local positions, isGlobal = core.definition(vm, position, 'definition', lsp)
if not positions then
return nil, isGlobal
end