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

Method cleanUpTerminals

src/process.ts:185–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 // which can happen with `restartExtensionHost` is called because we are
184 // unable to finish diposing before we're gone.
185 public static cleanUpTerminals(): void {
186 for (const terminal of vscode.window.terminals) {
187 if (terminal.name.startsWith(PowerShellProcess.title)) {
188 terminal.dispose();
189 }
190 }
191 }
192
193 // This function should only be used after a failure has occurred because it is slow!
194 public async getVersionCli(): Promise<string> {

Callers 1

Calls 1

disposeMethod · 0.45

Tested by

no test coverage detected