From 655bd3a65262beb3ac0e5ab55ef3e5fece13b239 Mon Sep 17 00:00:00 2001 From: amitjoshi Date: Fri, 17 May 2024 12:13:36 +0530 Subject: [PATCH] Invoking Language server only for PowerPages workspace --- 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 29808564..0a8e6871 100644 --- a/src/client/extension.ts +++ b/src/client/extension.ts @@ -96,9 +96,6 @@ export async function activate( ); } - vscode.workspace.onDidOpenTextDocument(didOpenTextDocument); - vscode.workspace.textDocuments.forEach(didOpenTextDocument); - // portal web view panel _context.subscriptions.push( vscode.commands.registerCommand( @@ -218,6 +215,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);