Skip to content

Commit

Permalink
Invoking Language server only for PowerPages workspace (#952)
Browse files Browse the repository at this point in the history
Co-authored-by: amitjoshi <[email protected]>
  • Loading branch information
2 people authored and tyaginidhi committed May 17, 2024
1 parent dd7465c commit 165ff6e
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 @@ -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(
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 165ff6e

Please sign in to comment.