mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix(editor): make tab close best-effort in DiffViewProvider.open (#11363)
This commit is contained in:
parent
c1a8767adc
commit
7df1a18ccb
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue