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

Method setSessionFailedGetPowerShell

src/session.ts:1281–1297  ·  view source on GitHub ↗
(
        message: string,
    )

Source from the content-addressed store, hash-verified

1279 }
1280
1281 private async setSessionFailedGetPowerShell(
1282 message: string,
1283 ): Promise<void> {
1284 this.setSessionStatus("Startup Error!", SessionStatus.Failed);
1285 await this.logger.writeAndShowErrorWithActions(message, [
1286 {
1287 prompt: "Open PowerShell Install Documentation",
1288 action: async (): Promise<void> => {
1289 await vscode.env.openExternal(
1290 vscode.Uri.parse(
1291 "https://aka.ms/get-powershell-vscode",
1292 ),
1293 );
1294 },
1295 },
1296 ]);
1297 }
1298
1299 private async setSessionFailedGetDotNet(message: string): Promise<void> {
1300 this.setSessionStatus("Startup Error!", SessionStatus.Failed);

Callers 3

startMethod · 0.95
handleFailedProcessMethod · 0.95
sessionStartedMethod · 0.95

Calls 2

setSessionStatusMethod · 0.95

Tested by

no test coverage detected