mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +00:00
Use closeAllEditors
for closeGroup
This commit is contained in:
parent
27cb4a5934
commit
783c0f8921
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue