summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-01 15:30:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-01 15:30:14 +0800
commit74e8cdc64719198018a565f438fa1ab66bfc71f5 (patch)
tree4265da1e0f839c339d69f0872fb6da16483b4f4f /script/provider
parentf050b38fd69bd1c90b99b536f89f8036c9f4fc3a (diff)
downloadlua-language-server-74e8cdc64719198018a565f438fa1ab66bfc71f5.zip
find reference respect `includeDeclaration`
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 7386ded0..8e99b354 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -484,7 +484,7 @@ m.register 'textDocument/references' {
end
local core = require 'core.reference'
local pos = converter.unpackPosition(state, params.position)
- local result = core(uri, pos)
+ local result = core(uri, pos, params.context.includeDeclaration)
if not result then
return nil
end