You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flip the default behavior of the postprovision hook so it does not write .vscode/settings.json unless the user explicitly opts in.
Background
In #26 we added CLAUDE_SKIP_VSCODE_SETTINGS as an opt-out so users who don't run the Anthropic Claude Code VS Code extension could keep the postprovision hook from touching .vscode/settings.json. After thinking about who actually uses this starter:
The primary consumers are people building with the Anthropic SDK, calling the Foundry endpoint from Copilot Chat / AI Toolkit, or running the Claude Code CLI (which only needs the claude-code.env.{ps1,sh} activator at the repo root — no .vscode/settings.json required).
The Claude Code VS Code extension is a niche layered on top of the CLI.
azd up writing into .vscode/settings.json by default is therefore:
only beneficial for the minority who installed the extension.
Proposed change
Make the default behavior: do not write .vscode/settings.json.
New opt-in env var CLAUDE_WRITE_VSCODE_SETTINGS=1 (matches 1/true/yes/on, case-insensitive) for users who do want the extension wired up automatically.
New -WriteVsCodeSettings switch on the .ps1 script and --write-vscode-settings flag on the .sh script.
Summary
Flip the default behavior of the postprovision hook so it does not write
.vscode/settings.jsonunless the user explicitly opts in.Background
In #26 we added
CLAUDE_SKIP_VSCODE_SETTINGSas an opt-out so users who don't run the Anthropic Claude Code VS Code extension could keep the postprovision hook from touching.vscode/settings.json. After thinking about who actually uses this starter:claude-code.env.{ps1,sh}activator at the repo root — no.vscode/settings.jsonrequired).azd upwriting into.vscode/settings.jsonby default is therefore:git statusand gets blamed for unrelated workspace issues, as reported by @pamelafox in Add CLAUDE_SKIP_VSCODE_SETTINGS opt-out for the postprovision hook #25),Proposed change
.vscode/settings.json.CLAUDE_WRITE_VSCODE_SETTINGS=1(matches1/true/yes/on, case-insensitive) for users who do want the extension wired up automatically.-WriteVsCodeSettingsswitch on the .ps1 script and--write-vscode-settingsflag on the .sh script.CLAUDE_SKIP_VSCODE_SETTINGS,-SkipVsCodeSettings, and--skip-vscode-settingsas deprecated no-ops so anyone who already set them after Add CLAUDE_SKIP_VSCODE_SETTINGS opt-out for postprovision hook #26 doesn't break.The activator at the repo root and
.claude/settings.jsoncontinue to be written either way — so the Claude Code CLI keeps working out of the box.