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 GitHub
parent c1a8767adc
commit 7df1a18ccb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
}