Skip to content

Commit 37cec1d

Browse files
committed
vscode-dotty: don't show the output channel on server error
Most of the time, the server can recover from errors, so displaying the stack trace to the user will only confuse him.
1 parent fb0347e commit 37cec1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vscode-dotty/src/extension.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import * as cpp from 'child-process-promise';
77

88
import { ExtensionContext } from 'vscode';
99
import * as vscode from 'vscode';
10-
import { LanguageClient, LanguageClientOptions, ServerOptions } from 'vscode-languageclient';
10+
import { LanguageClient, LanguageClientOptions, RevealOutputChannelOn,
11+
ServerOptions } from 'vscode-languageclient';
1112

1213
let extensionContext: ExtensionContext
1314
let outputChannel: vscode.OutputChannel
@@ -156,7 +157,8 @@ function run(serverOptions: ServerOptions) {
156157
],
157158
synchronize: {
158159
configurationSection: 'dotty'
159-
}
160+
},
161+
revealOutputChannelOn: RevealOutputChannelOn.Never
160162
}
161163

162164
outputChannel.dispose()

0 commit comments

Comments
 (0)