diff options
Diffstat (limited to 'server/src/method/textDocument/implementation.lua')
-rw-r--r-- | server/src/method/textDocument/implementation.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/method/textDocument/implementation.lua b/server/src/method/textDocument/implementation.lua index c92a8c56..4c7dfb3a 100644 --- a/server/src/method/textDocument/implementation.lua +++ b/server/src/method/textDocument/implementation.lua @@ -1,4 +1,4 @@ -local matcher = require 'matcher' +local core = require 'core' local function checkWorkSpaceComplete(lsp, result) if result.value then @@ -21,14 +21,14 @@ return function (lsp, params) end -- lua是从1开始的,因此都要+1 local position = lines:position(params.position.line + 1, params.position.character + 1) - local result = matcher.findResult(vm, position) + local result = core.findResult(vm, position) if not result then return nil end checkWorkSpaceComplete(lsp, result) - local positions = matcher.implementation(vm, result) + local positions = core.implementation(vm, result) if not positions then return nil end |