microsoft/vscode-python-environments/settings-precedence
Claude Code and agent skill by microsoft/vscode-python-environments
- vendor
Checking that the SKILL.md file is still in the repository.
VS Code settings precedence rules and common pitfalls. Essential for any code that reads or writes settings. Covers getConfiguration scope, inspect() vs get(), and multi-workspace handling.
Install
npx vskill@latest install microsoft/vscode-python-environments/settings-precedenceSKILL.md
VS Code Settings Precedence
Settings precedence bugs corrupt user configurations. This skill documents the correct patterns.
Precedence Order (Highest to Lowest)
- Workspace folder value - Per-folder in multi-root workspace
- Workspace value -
.vscode/settings.jsonor.code-workspace - User/global value - User
settings.json - Default value - From extension's
package.json(⚠️ may come from other extensions!)
Core Rules
Rule 1: Always Pass Scope to getConfiguration()
When to pass scope:
- Reading per-resource settings (
scope: "resource"in package.json) - Any multi-workspace scenario
- When you need
workspaceFolderValuefrom inspect()
Rule 2: Use inspect() to Check Explicit Values
Rule 3: Don't Overwrite User's Explicit Values
Rule 4: Update at the Correct Scope
Multi-Root Workspace Handling
The workspace Property
For multi-root workspaces, pythonProjects settings need a workspace property:
Without the workspace property, settings get mixed up between folders.
Getting the Right Workspace Folder
Common Issues
Issue: workspaceFolderValue is undefined
Cause: Missing scope parameter in getConfiguration()
Issue: defaultValue from other extensions
Cause: Using get() instead of inspect() for boolean checks
The defaultValue in inspect() may come from ANY extension's package.json, not just yours:
Issue: Settings overwritten on reload
Cause: Not checking for existing values before writing
Issue: Settings mixed up in multi-root
Cause: Not including workspace identifier in settings
Complete Example: Safe Settings Read/Write
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Jul 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/settings-precedence/SKILL.md
Popularity
- Repository stars
- 132
- Repository forks
- 52
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/vscode-python-environments/settings-precedence)