()
| 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> { |
no test coverage detected