mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Open the worktreeinclude file after creating it (#10891)
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
This commit is contained in:
parent
73b1b38eb1
commit
94459adba1
1 changed files with 10 additions and 0 deletions
|
|
@ -251,6 +251,16 @@ export async function handleCreateWorktreeInclude(provider: ClineProvider, conte
|
|||
|
||||
try {
|
||||
await worktreeIncludeService.createWorktreeInclude(cwd, content)
|
||||
|
||||
// Open the file in the editor for easy editing
|
||||
try {
|
||||
const filePath = path.join(cwd, ".worktreeinclude")
|
||||
const document = await vscode.workspace.openTextDocument(filePath)
|
||||
await vscode.window.showTextDocument(document)
|
||||
} catch {
|
||||
// Opening the file in editor is a convenience feature - don't fail the operation
|
||||
}
|
||||
|
||||
return {
|
||||
success: true,
|
||||
message: ".worktreeinclude file created",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue