mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Use closeAllEditors for closeGroup
This commit is contained in:
@@ -600,9 +600,7 @@ export class MainThreadEditorTabs implements MainThreadEditorTabsShape {
|
||||
for (const groupId of groupIds) {
|
||||
const group = this._editorGroupsService.getGroup(groupId);
|
||||
if (group) {
|
||||
// TODO @lramos15 change this to use group.closeAllEditors once it
|
||||
// is enriched to return a boolean
|
||||
groupCloseResults.push(await group.closeEditors([...group.editors], { preserveFocus }));
|
||||
groupCloseResults.push(await group.closeAllEditors());
|
||||
// Make sure group is empty but still there before removing it
|
||||
if (group.count === 0 && this._editorGroupsService.getGroup(group.id)) {
|
||||
this._editorGroupsService.removeGroup(group);
|
||||
|
||||
Reference in New Issue
Block a user