feat: SCM 'Open with Pi' + active-editor-aware cwd#16
Open
renebarbosabc wants to merge 3 commits into
Open
Conversation
- Add pi-vscode.openInFolder command (opens Pi terminal in a repo/worktree dir) - Contribute to scm/sourceControl (inline button, group 3_worktree@2) and scm/resourceState/context (right-click menu) - createNewTerminal and runPiRpcPrompt now resolve cwd from active editor's workspace folder - Add openFolder bridge RPC handler and vscode_open_worktree Pi tool - Accept optional cwd override in createNewTerminal
…logging - Flatten nested ternary in cwd resolution (terminal.ts, chat.ts) - Rename vscode_open_worktree to vscode_open_folder (accurate naming) - Add comment explaining dirname usage in git root resolution - Replace silent catch with console.warn in openInFolder handler
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
Open with Piinline button and context menu in the SCM view that opens a pi terminal in the selected repository/worktree directory, resolving to the git root automaticallyvscode_open_folderbridge tool to open any folder in VS Code from piType of change
feat— new feature or commandrefactor— code restructure, no behavior changeVerification
pnpm fmt)pnpm typecheck)