We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66a39de commit e2e322fCopy full SHA for e2e322f
src/features/Console.ts
@@ -211,7 +211,8 @@ export class ConsoleFeature implements IFeature {
211
return;
212
}
213
214
- if (vscode.window.activeTerminal.name !== "PowerShell Integrated Console") {
+ if (vscode.window.activeTerminal &&
215
+ vscode.window.activeTerminal.name !== "PowerShell Integrated Console") {
216
this.log.write("PSIC is not active terminal. Running in active terminal using 'runSelectedText'");
217
await vscode.commands.executeCommand("workbench.action.terminal.runSelectedText");
218
0 commit comments