Skip to content

Commit

Permalink
Invoking Language server only for PowerPages workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoshi committed May 17, 2024
1 parent d334176 commit 655bd3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 655bd3a

Please sign in to comment.