From 213d1c68fec66231adae192c3f43ecfbf678ac2a Mon Sep 17 00:00:00 2001 From: Laurent Nguyen Date: Mon, 3 Feb 2025 17:59:00 +0100 Subject: [PATCH] Remove feature switch on restore tabs (#2039) --- src/Platform/Hosted/extractFeatures.ts | 2 -- src/hooks/useKnockoutExplorer.ts | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Platform/Hosted/extractFeatures.ts b/src/Platform/Hosted/extractFeatures.ts index e26cb9c12..5bd84516e 100644 --- a/src/Platform/Hosted/extractFeatures.ts +++ b/src/Platform/Hosted/extractFeatures.ts @@ -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; @@ -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"), }; } diff --git a/src/hooks/useKnockoutExplorer.ts b/src/hooks/useKnockoutExplorer.ts index 0656c8a9b..fd4cda809 100644 --- a/src/hooks/useKnockoutExplorer.ts +++ b/src/hooks/useKnockoutExplorer.ts @@ -85,9 +85,7 @@ export function useKnockoutExplorer(platform: Platform): Explorer { await updateContextForSampleData(explorer); } - if (userContext.features.restoreTabs) { - restoreOpenTabs(); - } + restoreOpenTabs(); setExplorer(explorer); }