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

Method promptForRestart

src/session.ts:1135–1151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1133 }
1134
1135 private async promptForRestart(): Promise<void> {
1136 await this.logger.writeAndShowErrorWithActions(
1137 "The PowerShell Extension Terminal has stopped, would you like to restart it? IntelliSense and other features will not work without it!",
1138 [
1139 {
1140 prompt: "Yes",
1141 action: async (): Promise<void> => {
1142 await this.restartSession();
1143 },
1144 },
1145 {
1146 prompt: "No",
1147 action: undefined,
1148 },
1149 ],
1150 );
1151 }
1152
1153 private sendTelemetryEvent(
1154 eventName: string,

Callers 1

Calls 2

restartSessionMethod · 0.95

Tested by

no test coverage detected