MCPcopy Index your code
hub / github.com/PowerShell/vscode-powershell / onTerminalClose

Method onTerminalClose

src/process.ts:322–331  ·  view source on GitHub ↗
(terminal: vscode.Terminal)

Source from the content-addressed store, hash-verified

320 }
321
322 private onTerminalClose(terminal: vscode.Terminal): void {
323 if (terminal !== this.consoleTerminal) {
324 return;
325 }
326
327 this.logger.writeWarning(
328 `PowerShell process terminated or Extension Terminal was closed, PID: ${this.pid}`,
329 );
330 this.dispose();
331 }
332}

Callers 1

startMethod · 0.95

Calls 2

disposeMethod · 0.95
writeWarningMethod · 0.65

Tested by

no test coverage detected