mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
fix(editor): make tab close best-effort in DiffViewProvider.open (#11363)
This commit is contained in:
parent
e1321d2966
commit
d205a67c51
1 changed files with 5 additions and 1 deletions
|
|
@ -98,7 +98,11 @@ export class DiffViewProvider {
|
||||||
|
|
||||||
for (const tab of tabs) {
|
for (const tab of tabs) {
|
||||||
if (!tab.isDirty) {
|
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
|
this.documentWasOpen = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue