Skip to content

Add .vscode.local workspace overrides - #3

Open
snickell wants to merge 3 commits into
mainfrom
seth/local-workspace-overrides-directory
Open

snickell wants to merge 3 commits into
mainfrom
seth/local-workspace-overrides-directory

Conversation

@snickell

@snickell snickell commented Apr 10, 2026 •

Copy link
Copy Markdown
Owner

See #5 for all approaches to this problem, this is Approach 3 - Parallel Overlay Folder.

This PR adds support for: .vscode.local/{settings,tasks,launch,extensions}.json.

Related to microsoft#40233.
Related to microsoft#282806.

Workspace configuration files under .vscode/ are shared. There is no standard place for per-checkout local overrides for settings, tasks, launch, and extension recommendations.

Example:

// .vscode/settings.json
{
  "editor.tabSize": 2
}
// .vscode.local/settings.json
{
  "workbench.colorCustomizations": {
    "titleBar.activeBackground": "#1f6feb"
  }
}
// .vscode.local/tasks.json
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "local build",
      "type": "shell",
      "command": "npm run build:local"
    }
  ]
}

With this change, .vscode.local/ is a local companion to .vscode/. Local files override the shared files when both exist.

This change adds .vscode.local/ as a local companion to .vscode/.

  • read .vscode.local/settings.json
  • read .vscode.local/tasks.json
  • read .vscode.local/launch.json
  • read .vscode.local/extensions.json
  • when both exist, .vscode.local/ takes precedence over .vscode/
  • keep writes targeting the shared .vscode/ files
  • watch local files and register the same schema support where applicable
  • add tests for settings, tasks, launch, and extension recommendations

Not included in this change:

  • snippets
  • a separate .code-workspace.local mechanism

Alternative Approaches

Internal name PR Mechanism Stronger where this is weaker Weaker where this is stronger
1 - Single Sidecar Overlay PR #2 .vscode/settings.local.json smaller and simpler for the narrow folder-settings case settings-only
4 - First-Class Local Targets PR #1 .vscode/{settings,tasks,launch,extensions}.local.json and corresponding *.code-workspace.local sections as first-class workspace targets with separate provenance, inspect semantics, and editing paths separate provenance, inspect semantics, and editing paths across the local workspace file family much larger and more invasive
5 - General Config Composition PR #4 {settings,tasks,launch,extensions}.json can call extends to pull in other {settings,tasks,launch,extensions}.*.json files closer to current upstream inheritance work, applies as a general mechanism less direct as a dedicated per-checkout local override location

Pros:

  • one local override directory for several workspace file types
  • broader than a settings-only local file
  • keeps shared writes pointed at .vscode/

Cons:

  • introduces a new .vscode.local/ convention
  • does not cover saved workspaces in this branch
  • does not preserve separate configuration targets for local values

@snickell
snickell force-pushed the seth/local-workspace-overrides-directory branch from 84326e3 to 575f3d4 Compare April 11, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant