diff options
Diffstat (limited to 'server/src/method')
-rw-r--r-- | server/src/method/textDocument/references.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua index 555808ca..d4478d0e 100644 --- a/server/src/method/textDocument/references.lua +++ b/server/src/method/textDocument/references.lua @@ -7,6 +7,7 @@ return function (lsp, params) if not vm then return {} end + -- lua是从1开始的,因此都要+1 local position = lines:position(params.position.line + 1, params.position.character + 1) local positions = core.references(vm, position, declarat) |