Skip to content

Remove accidentally enabled commands #3564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
"onCommand:PowerShell.RestartSession",
"onCommand:PowerShell.EnableISEMode",
"onCommand:PowerShell.DisableISEMode",
"onCommand:PowerShell.RegisterExternalExtension",
"onCommand:PowerShell.UnregisterExternalExtension",
"onCommand:PowerShell.GetPowerShellVersionDetails",
"onView:PowerShellCommands"
],
"dependencies": {
Expand Down Expand Up @@ -300,21 +297,6 @@
"light": "media/resources/light/MovePanelBottom.svg",
"dark": "media/resources/dark/MovePanelBottom.svg"
}
},
{
"command": "PowerShell.RegisterExternalExtension",
"title": "Register an external extension",
"category": "PowerShell"
},
{
"command": "PowerShell.UnregisterExternalExtension",
"title": "Unregister an external extension",
"category": "PowerShell"
},
{
"command": "PowerShell.GetPowerShellVersionDetails",
"title": "Get details about the PowerShell version that the PowerShell extension is using",
"category": "PowerShell"
}
],
"menus": {
Expand Down
2 changes: 1 addition & 1 deletion src/features/ExternalApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class ExternalApiFeature extends LanguageClientConsumer implements IPower

// TODO: When we have more than one API version, make sure to include a check here.
const extension = ExternalApiFeature.registeredExternalExtension.get(uuid);
this.log.writeDiagnostic(`Extension '${extension.id}' used command 'PowerShell.GetPowerShellVersionDetails'.`);
this.log.writeDiagnostic(`Extension '${extension.id}' called 'getPowerShellVersionDetails'`);

await this.sessionManager.waitUntilStarted();
const versionDetails = this.sessionManager.getPowerShellVersionDetails();
Expand Down