Skip to content

feat: workspace lookup before opening from CLI - #2604

Open
gitPhate wants to merge 1 commit into
sourcegit-scm:developfrom
gitPhate:feature/cli-repo-open-correct-workspace
Open

feat: workspace lookup before opening from CLI#2604
gitPhate wants to merge 1 commit into
sourcegit-scm:developfrom
gitPhate:feature/cli-repo-open-correct-workspace

Conversation

@gitPhate

@gitPhate gitPhate commented Aug 3, 2026

Copy link
Copy Markdown

This PR improves the command line repo opening by looking up the repository among the ones already opened in all workspaces.
Tests done on win 11, with 3 workspaces configured:

  1. Program closed → CLI-open repo in a different workspace — works
  2. Program closed → CLI-open a different repo already in the same workspace — works
  3. Program open → CLI-open repo in a different workspace — works
  4. Program open → CLI-open a different repo in the same workspace — works
  5. Multi-tab target workspace — CLI-open correctly focused the right tab within the target workspace, not just whatever tab was last active there
  6. Bare repository, using the test repo at C:\Development\test-bare-repo.git — switched workspace correctly, tested both closed and already-open app states
  7. Case-insensitive path (CLI invoked with a lowercase path against a repo added with different casing) — matched correctly
  8. Persistence after CLI switch — relaunching normally afterward opens into the workspace the CLI switch left you in, as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant