Add feature flag for fixed output editor height or calculated height (#1606)

This commit is contained in:
v-darkora
2023-09-18 11:30:17 +02:00
committed by GitHub
parent 4e5358185f
commit c1c12019da
2 changed files with 18 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ export type Features = {
readonly copilotVersion?: string;
readonly disableCopilotPhoenixGateaway: boolean;
readonly enableCopilotFullSchema: boolean;
readonly copilotChatFixedMonacoEditorHeight: boolean;
// can be set via both flight and feature flag
autoscaleDefault: boolean;
@@ -112,6 +113,7 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear
copilotVersion: get("copilotversion") ?? "v1.0",
disableCopilotPhoenixGateaway: "true" === get("disablecopilotphoenixgateaway"),
enableCopilotFullSchema: "true" === get("enablecopilotfullschema", "true"),
copilotChatFixedMonacoEditorHeight: "true" === get("copilotchatfixedmonacoeditorheight"),
};
}