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:
Matt Rubens 2026-01-22 00:22:45 -08:00 • committed by GitHub
parent 73b1b38eb1
commit 94459adba1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",