Skip to content

Commit

Permalink
Remove feature switch on restore tabs (#2039)
Browse files Browse the repository at this point in the history
  • Loading branch information
languy authored Feb 3, 2025
1 parent c26f9a1 commit 213d1c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/Platform/Hosted/extractFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export type Features = {
readonly copilotChatFixedMonacoEditorHeight: boolean;
readonly enablePriorityBasedExecution: boolean;
readonly disableConnectionStringLogin: boolean;
readonly restoreTabs: boolean;

// can be set via both flight and feature flag
autoscaleDefault: boolean;
Expand Down Expand Up @@ -109,7 +108,6 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear
copilotChatFixedMonacoEditorHeight: "true" === get("copilotchatfixedmonacoeditorheight"),
enablePriorityBasedExecution: "true" === get("enableprioritybasedexecution"),
disableConnectionStringLogin: "true" === get("disableconnectionstringlogin"),
restoreTabs: "true" === get("restoretabs"),
};
}

Expand Down
4 changes: 1 addition & 3 deletions src/hooks/useKnockoutExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ export function useKnockoutExplorer(platform: Platform): Explorer {
await updateContextForSampleData(explorer);
}

if (userContext.features.restoreTabs) {
restoreOpenTabs();
}
restoreOpenTabs();

setExplorer(explorer);
}
Expand Down

0 comments on commit 213d1c6

Please sign in to comment.