From 86ad77b8617a979af13d3d1a1b0b2e033a953213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nidhi=20Tyagi=20=F0=9F=8C=9F=F0=9F=90=87=F0=9F=8C=B4?= =?UTF-8?q?=E2=9D=84=EF=B8=8F?= Date: Thu, 25 Apr 2024 17:04:03 +0530 Subject: [PATCH] update calling and comments --- src/common/ecs-features/ecsFeatureClient.ts | 4 ++-- src/web/client/extension.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/ecs-features/ecsFeatureClient.ts b/src/common/ecs-features/ecsFeatureClient.ts index e48fbce9..57b66da8 100644 --- a/src/common/ecs-features/ecsFeatureClient.ts +++ b/src/common/ecs-features/ecsFeatureClient.ts @@ -13,8 +13,8 @@ export abstract class ECSFeaturesClient { private static _ecsConfig: Record; private static _featuresConfig = {}; - // Initialize ECSFeatureClient and reference this for accessing any client config like below - // ECSFeaturesClient.getConfig(EnableMultifileVscodeWeb).enableMultifileVscodeWeb + // Initialize ECSFeatureClient - any client config can be fetched with utility function like below + // EnableMultifileVscodeWeb.getConfig().enableMultifileVscodeWeb public static async init(telemetry: ITelemetry | TelemetryReporter, filters: ECSAPIFeatureFlagFilters, clientName: string) { if (this._ecsConfig) return; diff --git a/src/web/client/extension.ts b/src/web/client/extension.ts index b4e42f48..2250b2c8 100644 --- a/src/web/client/extension.ts +++ b/src/web/client/extension.ts @@ -149,6 +149,7 @@ export function activate(context: vscode.ExtensionContext): void { async () => { await portalsFS.readDirectory(WebExtensionContext.rootDirectory, true); + // Initialize ECS config in webExtensionContext await ECSFeaturesClient.init(WebExtensionContext.telemetry.getTelemetryReporter(), { AppName: PowerPagesAppName, @@ -158,7 +159,6 @@ export function activate(context: vscode.ExtensionContext): void { Region: queryParamsMap.get(queryParameters.REGION) as string }, PowerPagesClientName); - // Initialize ECS config in webExtensionContext registerCopilot(context); processWillStartCollaboration(context);