Completion

Indexing & require hints

scriptRoots controls which folders are parsed; large repos should use ignore.

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

Completion UX