summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/settings.json3
-rw-r--r--script/core/definition.lua2
2 files changed, 3 insertions, 2 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 5c163ade..28cfacbe 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -34,5 +34,6 @@
"Lua.plugin.enable": true,
"Lua.awakened.cat": true,
"Lua.develop.enable": true,
- "Lua.develop.debuggerPort": 11413
+ "Lua.develop.debuggerPort": 11413,
+ "Lua.intelliSense.searchDepth": 5
}
diff --git a/script/core/definition.lua b/script/core/definition.lua
index 6483fcac..97113ec5 100644
--- a/script/core/definition.lua
+++ b/script/core/definition.lua
@@ -124,7 +124,7 @@ return function (uri, offset)
end
end
- for _, src in ipairs(vm.getDefs(source, 5)) do
+ for _, src in ipairs(vm.getDefs(source, 0)) do
local root = guide.getRoot(src)
if not root then
goto CONTINUE