Repository navigation
Support OS-specific settings in settings.json - #335281
Yang Zongze (lrtfm) wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Remote extension hosts can miss configuration events, and schema completion currently advertises unsupported nested language blocks.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds OS-specific settings.json overrides while preserving configuration scope and language precedence.
Changes:
- Adds
[windows],[osx], and[linux]resolution. - Adds schema support and separates platform from language overrides.
- Adds platform resolution and change-reporting tests.
File summaries
| File | Description |
|---|---|
configurationService.ts |
Adds platform block schemas. |
configurationRegistry.ts |
Defines platform identifiers and language-only patterns. |
configurationModels.ts |
Resolves platform values across configuration scopes. |
configurationRegistry.test.ts |
Tests override-pattern separation. |
configurationModels.test.ts |
Tests platform precedence and changes. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
🟡 Changes recommended
Platform blocks currently bypass Settings Sync exclusions and mishandle some accepted schema and bootstrap cases.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 3
- Review effort level: Balanced
32c7c8e to
fe76090
Compare
There was a problem hiding this comment.
🟢 Approval recommended
The implementation and regression coverage consistently address platform resolution, schema behavior, profiles, and synchronization without unresolved defects.
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Balanced
Fixes #5595
Summary
windows,osx, andlinuxblocks tosettings.json.{ "editor.fontSize": 16, "osx": { "vim.autoSwitchInputMethod.obtainIMCmd": "/opt/homebrew/bin/macism", "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } }, "windows": { "vim.autoSwitchInputMethod.obtainIMCmd": "im-select.exe" }, "linux": { "vim.autoSwitchInputMethod.enable": false } }Profiles remain independent from the operating system, allowing the same workflow profile to be reused across platforms. The syntax follows the existing platform-specific configuration precedent in
tasks.json.Testing
npm run typecheck-clientnpm run transpile-client