mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 00:21:38 -05:00
Remove unnecessary return in tab close
This commit is contained in:
@@ -489,7 +489,7 @@ suite('vscode API - window', () => {
|
||||
// Function to acquire the active tab within the active group
|
||||
const getActiveTabInActiveGroup = () => {
|
||||
const activeGroup = window.tabGroups.groups.filter(group => group.isActive)[0];
|
||||
return activeGroup.activeTab;
|
||||
return activeGroup?.activeTab;
|
||||
};
|
||||
|
||||
await window.showTextDocument(docA, { viewColumn: ViewColumn.One, preview: false });
|
||||
@@ -514,8 +514,7 @@ suite('vscode API - window', () => {
|
||||
await commands.executeCommand('workbench.action.closeActiveEditor');
|
||||
await commands.executeCommand('workbench.action.closeActiveEditor');
|
||||
|
||||
// TODO @lramos15 fix this failing piece
|
||||
//assert.ok(!getActiveTabInActiveGroup());
|
||||
assert.ok(!getActiveTabInActiveGroup());
|
||||
});
|
||||
|
||||
/*
|
||||
|
||||
@@ -213,7 +213,6 @@ export class MainThreadEditorTabs implements MainThreadEditorTabsShape {
|
||||
if (this._tabGroupModel[i].groupId === group.id) {
|
||||
this._tabGroupModel.splice(i, 1);
|
||||
this._groupLookup.delete(group.id);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user