Skip to content

Commit

Permalink
Remove unused enabledApiProposals from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoshi committed Jul 11, 2024
1 parent eb3d162 commit ad58665
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@
"onDebug",
"onFileSystem:powerplatform-vfs"
],
"enabledApiProposals": [
"chatParticipant",
"chatVariableResolver",
"languageModels"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
Expand Down
9 changes: 3 additions & 6 deletions src/client/OrgChangeNotifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,18 @@ export class OrgChangeNotifier {
private _pacWrapper: PacWrapper | undefined;
private _orgDetails: ActiveOrgOutput | undefined;
private static _orgChangeNotifierObj: OrgChangeNotifier | undefined;
private extensionContext: vscode.ExtensionContext;

private constructor(pacWrapper: PacWrapper, extensionContext: vscode.ExtensionContext) {
private constructor(pacWrapper: PacWrapper) {
this._pacWrapper = pacWrapper;
this.activeOrgDetails();
if (this._pacWrapper) {
this.setupFileWatcher();
}

this.extensionContext = extensionContext;
}

public static createOrgChangeNotifierInstance(pacWrapper: PacWrapper, extensionContext: vscode.ExtensionContext) {
public static createOrgChangeNotifierInstance(pacWrapper: PacWrapper) {
if (!OrgChangeNotifier._orgChangeNotifierObj) {
OrgChangeNotifier._orgChangeNotifierObj = new OrgChangeNotifier(pacWrapper, extensionContext);
OrgChangeNotifier._orgChangeNotifierObj = new OrgChangeNotifier(pacWrapper);
}
return OrgChangeNotifier._orgChangeNotifierObj;
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export async function activate(
oneDSLoggerWrapper.getLogger().traceError(exceptionError.name, exceptionError.message, exceptionError, { eventName: 'VscodeDesktopUsage' });
}
// Init OrgChangeNotifier instance
OrgChangeNotifier.createOrgChangeNotifierInstance(pacTerminal.getWrapper(), _context);
OrgChangeNotifier.createOrgChangeNotifierInstance(pacTerminal.getWrapper());

vscode.workspace.onDidOpenTextDocument(didOpenTextDocument);
vscode.workspace.textDocuments.forEach(didOpenTextDocument);
Expand Down

0 comments on commit ad58665

Please sign in to comment.