Completion

Indexing & require hints

scriptRoots controls indexing; use ignore on large trees.

luadebug.scriptRoots

If unset, the workspace root is indexed. Once set, only listed folders are parsed:

"luadebug.scriptRoots": [
  "${workspaceFolder}/src",
  "${workspaceFolder}/scripts"
]

Used for require path hints and symbol indexing. Huge trees slow startup.

Narrow scope

"luadebug.ignoreDir": ["${workspaceFolder}/src/3rd"],
"luadebug.ignoreFiles": ["${workspaceFolder}/src/generated.lua"],
"luadebug.maxFileSize": 2048

maxFileSize is in KB; larger files are skipped (default about 2MB).

require options

Completion UX