Rename .groups to .all again

This commit is contained in:
Logan Ramos
2022-04-05 15:06:31 -04:00
parent ef71c65923
commit 135a162106
4 changed files with 39 additions and 40 deletions

View File

@@ -953,7 +953,7 @@ export class ExtHostVariableResolverService extends AbstractVariableResolverServ
if (activeEditor) {
return activeEditor.document.uri;
}
const activeTab = editorTabs.tabGroups.groups.find(group => group.isActive)?.activeTab;
const activeTab = editorTabs.tabGroups.all.find(group => group.isActive)?.activeTab;
if (activeTab !== undefined) {
// Resolve a resource from the tab
if (activeTab.kind instanceof TextDiffTabInput || activeTab.kind instanceof NotebookDiffEditorTabInput) {

View File

@@ -223,7 +223,7 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs {
onDidChangeTabGroups: that._onDidChangeTabGroups.event,
onDidChangeTabs: that._onDidChangeTabs.event,
// dynamic -> getters
get groups() {
get all() {
return Object.freeze(that._extHostTabGroups.map(group => group.apiObject));
},
get activeTabGroup() {