Skip to content

Commit 976d4e6

Browse files
alexzhang1030HerringtonDarkholme
authored andcommitted
fix: focus lost if active diff tab is closed
1 parent 414fe73 commit 976d4e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function closeAllDiffs() {
154154
for (const tab of tabs) {
155155
const input = tab.input
156156
if (input instanceof TabInputTextDiff && isSgPreviewUri(input.modified)) {
157-
window.tabGroups.close(tab)
157+
window.tabGroups.close(tab, true)
158158
}
159159
}
160160
}

0 commit comments

Comments
 (0)