Task Discovery โ General Settings
Table of Contents
workspaceTasks.exclude
Type: array Default: []
Glob patterns for files and directories to exclude from task discovery. Any file matching one of these patterns is ignored by all task providers. This is useful for excluding large or generated directories that do not contain tasks.
Example:
{
"workspaceTasks.exclude": [
"**/node_modules/**",
"**/dist/**",
"**/.git/**"
]
}

workspaceTasks.taskDiscovery.fetchDepth
Type: number | null Default: null
Controls how deep (in folder levels) the extension will search for tasks below the workspace root. A value of null (the default) means the search is unbounded โ the extension scans all subdirectories recursively. A positive integer limits the search to that many levels deep, which can significantly improve performance in large monorepos or complex folder hierarchies.
| Value | Behaviour |
|---|---|
null | Full recursive search (no limit) |
1 | Workspace root only |
2 | Root + one level of subdirectories |
N | Root + Nโ1 levels of subdirectories |
Example:
{
"workspaceTasks.taskDiscovery.fetchDepth": 3
}
