Repository navigation
refactor(ui): move "Open in VS Code" out of the git menu, next to Explorer / PowerShell - #179
Merged
Merged
Conversation
…lorer / PowerShell
Opening a folder in an editor is not a git action, and it should work for a
folder that isn't a repo. It now lives in MainWindow.OpenIn.cs:
- a "{ }" button on the terminal toolbar between >_ and 📁, and
- "Open in VS Code" after "Open PowerShell here" in the sidebar right-click menu.
Both appear only when VS Code was found and the session has a local folder
(not SSH). The toolbar button starts collapsed and shows once the off-thread
lookup succeeds. The lookup and launch are unchanged: code.cmd on PATH →
Code.exe, launched directly with the folder as one argv element.
A configurable "Open with…" for other editors, other VS Code installs and
WSL/SSH remotes is #178.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NsYm9iLc2aRnRDfV2uZRQX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves Open in VS Code out of the git chip's menu. It is now a
{ }button on the terminal toolbar between >_ and 📁, and an item after "Open PowerShell here" in the sidebar right-click menu.Why
Opening a folder in an editor isn't a git action, and it should work for a folder that isn't a repo — in the git menu it was only reachable from repos.
Implementation notes
MainWindow.OpenIn.csholds the lookup and launcher, moved unchanged fromMainWindow.Git.cs:code.cmdon PATH →Code.exe, launched directly with the folder as one argv element (never throughcode.cmd/cmd.exe).Test plan
GitServiceThreadingTeststhat need a non-worktree checkout run in CI).{ }appears between >_ and 📁 on a session whose folder is not a git repo (and no git chip there).{ }opens the folder in VS Code; sidebar right-click → "Open in VS Code" does the same; the git menu no longer has it.🤖 Generated with Claude Code
https://claude.ai/code/session_01NsYm9iLc2aRnRDfV2uZRQX