Skip to content

Commit 2cd4a28

Browse files
committed
PR feedback
1 parent 8bc4968 commit 2cd4a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/activate/registerCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const openClineInNewTab = async ({ context, outputChannel }: Omit<Registe
132132
if (!hasVisibleEditors) {
133133
// No editors open, open in first column
134134
targetCol = vscode.ViewColumn.One
135-
} else if (activeEditor && activeEditor.document.fileName === "" && vscode.window.visibleTextEditors.length === 1) {
135+
} else if (activeEditor && activeEditor.document.isUntitled && vscode.window.visibleTextEditors.length === 1) {
136136
// Only one editor and it's empty (untitled), reuse it
137137
targetCol = activeEditor.viewColumn ?? vscode.ViewColumn.One
138138
} else {

0 commit comments

Comments
 (0)