fix(editor): make tab close best-effort in DiffViewProvider.open (#11363)

This commit is contained in:
0xMink 2026-02-10 09:52:30 -05:00 • committed by daniel-lxs
parent e1321d2966
commit d205a67c51
No known key found for this signature in database
GPG key ID: 21C74479048B3AA6

View file

@ -98,7 +98,11 @@ export class DiffViewProvider {
for (const tab of tabs) {
if (!tab.isDirty) {
await vscode.window.tabGroups.close(tab)
try {
await vscode.window.tabGroups.close(tab)
} catch (err) {
console.error(`Failed to close tab ${tab.label}`, err)
}
}
this.documentWasOpen = true
}