diff --git a/vscode/src/client.ts b/vscode/src/client.ts index 114b385f2..7e29c915f 100644 --- a/vscode/src/client.ts +++ b/vscode/src/client.ts @@ -52,12 +52,9 @@ interface ServerErrorTelemetryEvent { type ServerTelemetryEvent = ServerErrorTelemetryEvent; -function enabledFeatureFlags() { +function enabledFeatureFlags(): Record { const allKeys = Object.keys(FEATURE_FLAGS) as (keyof typeof FEATURE_FLAGS)[]; - - return allKeys.map((key) => { - return { [key]: featureEnabled(key) }; - }); + return Object.fromEntries(allKeys.map((key) => [key, featureEnabled(key)])); } // Get the executables to start the server based on the user's configuration