Skip to content

Commit

Permalink
update calling and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tyaginidhi committed Apr 25, 2024
1 parent 505891d commit 86ad77b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/ecs-features/ecsFeatureClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export abstract class ECSFeaturesClient {
private static _ecsConfig: Record<string, string | boolean>;
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;

Expand Down
2 changes: 1 addition & 1 deletion src/web/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
Expand Down

0 comments on commit 86ad77b

Please sign in to comment.