Skip to content

Support .vscode/settings.local.json for folder workspaces - #2

Open
snickell wants to merge 6 commits into
mainfrom
seth/local-workspace-settings-folder
Open

snickell wants to merge 6 commits into
mainfrom
seth/local-workspace-settings-folder

Conversation

@snickell

@snickell snickell commented Apr 10, 2026 •

Copy link
Copy Markdown
Owner

See #5 for all approaches to this problem, this is Approach 1 - Single Sidecar Overlay.

This PR adds support for: .vscode/settings.local.json.

Fixes microsoft#40233.

Folder workspaces currently have a single workspace settings file, .vscode/settings.json. Shared workspace settings and per-user local settings therefore use the same file.

Example:

// .vscode/settings.json
{
  "editor.tabSize": 2
}
// .vscode/settings.local.json
{
  "workbench.colorCustomizations": {
    "titleBar.activeBackground": "#1f6feb"
  }
}

With this change, .vscode/settings.local.json is loaded after .vscode/settings.json and overrides it for that checkout.

This change adds support for .vscode/settings.local.json in folder workspaces.

  • watch and reload .vscode/settings.local.json on create, change, delete, and parent-folder delete
  • register JSONC, schema, and completion support for .vscode/settings.local.json
  • keep configuration writes pointed at .vscode/settings.json
  • add focused coverage for folder configuration loading and completion support

Scope is read-path support for folder workspaces. Write behavior is unchanged.

Alternative Approaches

Internal name PR Mechanism Stronger where this is weaker Weaker where this is stronger
3 - Parallel Overlay Folder PR #3 .vscode.local/{settings,tasks,launch,extensions}.json broader coverage across tasks, launch, and extensions larger patch, more opinionated filesystem convention
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 preserves separate provenance and editing semantics across the local workspace file family much larger and more product-facing
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, reusable beyond local settings less direct for the local-settings use case

Pros:

  • smallest patch of the four
  • direct answer to the folder-workspace local-settings problem
  • keeps the behavior easy to explain: one extra sidecar file

Cons:

  • only covers settings.json
  • only covers folder workspaces
  • does not preserve a separate configuration target for local values

@snickell snickell changed the title Add Local Workspace settings support for folder workspaces Support .vscode/settings.local.json for folder workspaces Apr 10, 2026
@snickell
snickell force-pushed the seth/local-workspace-settings-folder branch from bbd454c to f5bd102 Compare April 11, 2026 20:23
@KnoerleMaTLS

Copy link
Copy Markdown

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?

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.

[Feature] Local Workspace settings

2 participants