We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 814aca9 commit cf21f5dCopy full SHA for cf21f5d
src/features/Console.ts
@@ -37,7 +37,11 @@ export function registerConsoleCommands(client: LanguageClient): void {
37
38
var consoleChannel = vscode.window.createOutputChannel("PowerShell Output");
39
client.onNotification(OutputNotification.type, (output) => {
40
- consoleChannel.show(vscode.ViewColumn.Three);
+ var outputEditorExist = vscode.window.visibleTextEditors.some((editor) => {
41
+ return editor.document.languageId == 'Log'
42
+ });
43
+ if(!outputEditorExist)
44
+ consoleChannel.show(vscode.ViewColumn.Three);
45
consoleChannel.append(output.output);
46
});
-}
47
+}
0 commit comments