Task Discovery โ€” General Settings

Table of Contents

  1. workspaceTasks.exclude
  2. workspaceTasks.taskDiscovery.fetchDepth
  3. Related

workspaceTasks.exclude

ย  ย 
Type: string[]
Default: []
Scope: resource

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/**"
  ]
}

Screenshot - Exclude Patterns

workspaceTasks.taskDiscovery.fetchDepth

ย  ย 
Type: number \| null
Default: null
Scope: resource

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 Behavior
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
}

Screenshot - Fetch Depth