Skip to content

Commit 1f8b957

Browse files
authored
don't auto-reveal output panel (#219)
1 parent 3af0667 commit 1f8b957

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

client/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
LanguageClientOptions,
1313
ServerOptions,
1414
Trace,
15+
RevealOutputChannelOn,
1516
} from 'vscode-languageclient/node';
1617

1718
let client: LanguageClient;
@@ -90,6 +91,8 @@ function startLanguageServer(
9091
const clientOptions: LanguageClientOptions = {
9192
// Route general server logs to a single, reusable channel
9293
outputChannel: serverOutputChannel,
94+
// Never auto-reveal the server output channel
95+
revealOutputChannelOn: RevealOutputChannelOn.Never,
9396
// Send JSON-RPC trace to a dedicated channel visible in the Output panel
9497
traceOutputChannel: outputChannel,
9598
markdown: {
@@ -129,9 +132,6 @@ function startLanguageServer(
129132
client.setTrace(map[level]);
130133
try {
131134
outputChannel.appendLine(`[Nushell] JSON-RPC tracing set to: ${level}`);
132-
if (level !== 'off') {
133-
outputChannel.show(true);
134-
}
135135
} catch {
136136
// ignore
137137
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "vscode-nushell-lang",
44
"description": "nushell language for vscode",
55
"author": "The Nushell Project Developers",
6-
"version": "2.0.3",
6+
"version": "2.0.4",
77
"preview": false,
88
"license": "MIT",
99
"publisher": "TheNuProjectContributors",

0 commit comments

Comments
 (0)