claude-code - 💡(How to fix) Fix [FEATURE] vscode:// URI handler should support newWindow parameter to open in a new VS Code window [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47200Fetched 2026-04-14 05:55:30
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When using the vscode://anthropic.claude-code/open?prompt=... deep link, Claude Code opens in whichever VS Code window is currently focused. If you're mid-session in another window, this is disruptive — the prompt hijacks your current context.

Proposed Solution

Support a newWindow=true query parameter that opens a fresh VS Code window before starting the Claude Code session:

vscode://anthropic.claude-code/open?prompt=...&newWindow=true This would mirror how the VS Code CLI handles code -n (new window).

Alternative Solutions

None currently — manually opening a new VS Code window before clicking the link works but defeats the one-click experience.

Priority

High - Significant impact on productivity

Feature Category

Developer tools/SDK

Use Case Example

I'm building a prototype gallery where each card has an "Edit in VS Code" button that deep-links into a Claude Code session scoped to that project's folder. Since team members may already have unrelated VS Code windows open, opening in a new window would keep sessions cleanly separated without interrupting existing work.

Additional Context

No response

extent analysis

TL;DR

Adding a newWindow=true query parameter to the deep link may allow Claude Code to open in a fresh VS Code window.

Guidance

  • Consider implementing the proposed solution by adding support for the newWindow=true query parameter in the Claude Code deep link handler.
  • Verify that the VS Code API supports opening a new window programmatically, potentially using a similar approach to the code -n CLI command.
  • Test the proposed solution with different VS Code window scenarios to ensure it works as expected and does not introduce any regressions.
  • Evaluate the potential impact on existing workflows and consider adding an option to configure the default behavior (e.g., always open in a new window or use the current window).

Example

No code example is provided as the issue does not contain sufficient technical details about the implementation.

Notes

The feasibility of this solution depends on the capabilities of the VS Code API and the specific requirements of the Claude Code integration. Further investigation is needed to determine the best approach.

Recommendation

Apply workaround: Implement the proposed newWindow=true query parameter to provide a more seamless experience for users. This approach mirrors the existing VS Code CLI behavior and addresses the reported productivity issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING