From 165ff6eb01e2a0fd53429cbada254e99e3d34c04 Mon Sep 17 00:00:00 2001 From: amitjoshi438 <54068463+amitjoshi438@users.noreply.github.com> Date: Fri, 17 May 2024 15:28:58 +0530 Subject: [PATCH] Invoking Language server only for PowerPages workspace (#952) Co-authored-by: amitjoshi --- src/client/extension.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/extension.ts b/src/client/extension.ts index 4020da1b..96cdb6d1 100644 --- a/src/client/extension.ts +++ b/src/client/extension.ts @@ -95,9 +95,6 @@ export async function activate( ); } - vscode.workspace.onDidOpenTextDocument(didOpenTextDocument); - vscode.workspace.textDocuments.forEach(didOpenTextDocument); - // portal web view panel _context.subscriptions.push( vscode.commands.registerCommand( @@ -217,6 +214,9 @@ export async function activate( // Init OrgChangeNotifier instance OrgChangeNotifier.createOrgChangeNotifierInstance(pacTerminal.getWrapper()); + vscode.workspace.onDidOpenTextDocument(didOpenTextDocument); + vscode.workspace.textDocuments.forEach(didOpenTextDocument); + _telemetry.sendTelemetryEvent("PowerPagesWebsiteYmlExists"); // Capture's PowerPages Users oneDSLoggerWrapper.getLogger().traceInfo("PowerPagesWebsiteYmlExists"); vscode.commands.executeCommand('setContext', 'powerpages.websiteYmlExists', true);