Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/core/webview/worktree/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,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",
Expand Down
Loading