Skip to content

Commit fd28ace

Browse files
nmellalmsakandeCopilot
authored
Change Claude Code environment variables format for vscode extension (#749)
* Change Claude Code environment variables format for vscode extension Updated the configuration format for Claude Code environment variables from an object to an array for vscode extension. The actual format doesn't work * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Mope Akande <17515964+msakande@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent d50b56a commit fd28ace

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

articles/foundry/foundry-models/how-to/configure-claude-code.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,13 @@ The Claude Code VS Code extension provides a native graphical interface for Clau
267267
1. Select **Edit in settings.json** and add the following configuration:
268268
269269
```json
270-
{
271-
"Claude Code: Environment Variables": {
272-
"CLAUDE_CODE_USE_FOUNDRY": "1",
273-
"ANTHROPIC_FOUNDRY_RESOURCE": "<your-resource-name>",
274-
"ANTHROPIC_FOUNDRY_API_KEY": "<optional-for-non-entra-auth>"
270+
{
271+
"Claude Code: Environment Variables": [
272+
{ "name": "CLAUDE_CODE_USE_FOUNDRY", "value": "1" },
273+
{ "name": "ANTHROPIC_FOUNDRY_RESOURCE", "value": "<your-resource-name>" },
274+
{ "name": "ANTHROPIC_FOUNDRY_API_KEY", "value": "<optional-for-non-entra-auth>" }
275+
]
275276
}
276-
}
277277
```
278278
279279
1. Select the **Spark icon** in the sidebar to open the Claude Code panel.

0 commit comments

Comments
 (0)