MCPcopy
hub / github.com/PowerShell/vscode-powershell / registerCommands

Method registerCommands

src/session.ts:700–724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

698 }
699
700 private registerCommands(): void {
701 this.registeredCommands = [
702 vscode.commands.registerCommand(
703 "PowerShell.RestartSession",
704 async () => {
705 await this.restartSession();
706 },
707 ),
708 vscode.commands.registerCommand(
709 this.ShowSessionMenuCommandName,
710 async () => {
711 await this.showSessionMenu();
712 },
713 ),
714 vscode.workspace.onDidChangeConfiguration((e) =>
715 this.restartOnCriticalConfigChange(e),
716 ),
717 vscode.commands.registerCommand(
718 "PowerShell.ShowSessionConsole",
719 (isExecute?: boolean) => {
720 this.showSessionTerminal(isExecute);
721 },
722 ),
723 ];
724 }
725
726 private async findPowerShell(
727 wantedName?: string,

Callers 1

constructorMethod · 0.95

Calls 4

restartSessionMethod · 0.95
showSessionMenuMethod · 0.95
showSessionTerminalMethod · 0.95

Tested by

no test coverage detected