Repository navigation
Description
.vscode/settings.json mixes shared repository configuration with per-checkout preferences. That works poorly for settings such as window color, minimap visibility, and other local-only overrides.
The same problem appears in other workspace files where shared team defaults and local checkout preferences may need to diverge: tasks.json, launch.json, extensions.json, and saved workspace files.
This issue compares four candidate mechanisms and asks which direction, if any, is worth pursuing first.
Relevant upstream threads:
- microsoft/vscode#40233: local workspace settings
- microsoft/vscode#282806:
.code-workspace.localfor untracked local overrides - microsoft/vscode#15909: extending from other settings files
- microsoft/vscode#299164: draft
extendsimplementation
Candidate branches
| Internal name | PR | Mechanism | Extra source lines | Upstream suitability |
|---|---|---|---|---|
| 1 - Single Sidecar Overlay | PR #2 | .vscode/settings.local.json |
49 | Medium |
| 3 - Parallel Overlay Folder | PR #3 | .vscode.local/{settings,tasks,launch,extensions}.json |
163 | Low |
| 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 |
815 | Low |
| 5 - General Config Composition | PR #4 | {settings,tasks,launch,extensions}.json can call extends to pull in other {settings,tasks,launch,extensions}.*.json files |
379 | High |
Approach 1: Single Sidecar Overlay (PR #2: Support .vscode/settings.local.json for folder workspaces)
This branch adds .vscode/settings.local.json for folder workspaces. The local file is loaded after .vscode/settings.json and overrides it, while writes remain pointed at the shared file; see PR #2. This addresses the common folder-workspace case with a small patch. It does not address saved workspaces, and it does not extend beyond settings.json.
Approach 3: Parallel Overlay Folder (PR #3: Add .vscode.local workspace overrides)
This branch adds .vscode.local/ as a local companion to .vscode/. It supports settings.json, tasks.json, launch.json, and extensions.json, with local files taking precedence over shared files; see PR #3. This gives one local override location across several workspace file types. It does not add a saved-workspace equivalent, and it does not preserve a distinct configuration target.
Approach 4: First-Class Local Targets (PR #1: Add local workspace settings targets)
This branch introduces explicit local targets for folder workspaces and saved workspaces across the local workspace file family. It updates inspect surfaces, write routing, settings UI where applicable, and editing behavior so local settings, tasks, launch, and extension-recommendation state remain distinct from shared workspace state; see PR #1. This preserves separate provenance and write semantics across both .vscode/*.local.json files and *.code-workspace.local sections. It also requires target-model, UI, and API-surface changes.
Approach 5: General Config Composition (PR #4: Add extends support for workspace configuration files)
This branch adds extends support to workspace configuration files. It covers settings.json, tasks.json, launch.json, extensions.json, and the corresponding sections in .code-workspace, with recursive resolution, cycle checks, path confinement, watchers, schema entries, and tests; see PR #4. This can express both local overrides and shared base-file reuse. It is a general mechanism rather than a dedicated local-workspace feature.
Comparison
| Approach | Strengths | Limits | Relation to existing upstream work |
|---|---|---|---|
| 1 | Small patch; narrow scope; direct folder-workspace answer | settings.json only; folder workspaces only |
Same feature family as microsoft/vscode#40233 |
| 3 | One local override directory for several workspace file types | New .vscode.local/ convention; no saved-workspace equivalent here |
Broader than current upstream discussions |
| 4 | Separate inspect and write semantics across the local workspace file family; explicit local provenance | Large change; affects targets, UI, and API surface | Closest to a complete local-settings model, but also the most product-facing |
| 5 | General mechanism; works beyond settings; uses extends |
More indirect than a dedicated local-settings feature | Closest to microsoft/vscode#15909 and microsoft/vscode#299164 |
Current reading
The local-settings problem is real and already visible in upstream issues. The narrower local-settings variants are direct, but they introduce file conventions, target semantics, or UI behavior that make them more product-sensitive.
The least invasive path appears to be extends, because it overlaps existing upstream work and applies to more than one workspace file type.
Preferred direction
Current ordering:
- PR #4: Add extends support for workspace configuration files (
Approach 5 - General Config Composition) - PR #2: Support .vscode/settings.local.json for folder workspaces (
Approach 1 - Single Sidecar Overlay) - PR #3: Add .vscode.local workspace overrides (
Approach 3 - Parallel Overlay Folder) - PR #1: Add local workspace settings targets (
Approach 4 - First-Class Local Targets)
Direct question: would maintainers prefer pursuing extends first, or is a dedicated local-workspace mechanism acceptable?
Activity
[-]Workspace-local configuration approaches: sidecar, overrides directory, local targets, and extends[/-][+]Workspace-local configuration: candidate mechanisms and preferred direction[/+][-]Workspace-local configuration: candidate mechanisms and preferred direction[/-][+]Per-user workspace settings.yaml in VSCode [/+][-]Per-user workspace settings.yaml in VSCode [/-][+]Per-user workspace settings.yaml in VSCode (vs repo shared)[/+]KnoerleMaTLS commentedon Sep 17, 2026
Has anyone looked into this yet?
This would resolve a feature request from 2017. Maybe it's time to finally fulfill this much-needed request?