luadebug.scriptRoots
If unset, the workspace root is indexed. If set, only listed folders are parsed:
"luadebug.scriptRoots": [
"${workspaceFolder}/src",
"${workspaceFolder}/scripts"
]
Used for require path hints and symbol index. Huge trees slow startup.
Narrow the scope
"luadebug.ignoreDir": ["${workspaceFolder}/src/3rd"],
"luadebug.ignoreFiles": ["${workspaceFolder}/src/generated.lua"],
"luadebug.maxFileSize": 2048
maxFileSize is in KB; larger files are skipped (default ~2MB).
require-related
requireFunNames— function names treated as require (default require, import).modulePathMark— use.or/in require paths.
Completion UX
postfixCompletion— postfix completionquickFilePath— suggest file paths after quotesvariableNameMatching— link variables whose names match global tables / file / class namessnippetSuggestions— maps editor.snippetSuggestionsprotobufRoot— parse .proto under a folder for hintsopenUriConfig— open a URL from selected text