Skip to content

Commit 93da62a

Browse files
committed
[backport] vscode-dotty: don't show the output channel on server error
This is a backport of 37cec1d to the 0.9 branch. Since this only affects the vscode client we won't need to make a new dotty release, just a new vscode-dotty release.
1 parent 8b21d12 commit 93da62a

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
@@ -94,7 +95,8 @@ function run(serverOptions: ServerOptions) {
9495
],
9596
synchronize: {
9697
configurationSection: 'dotty'
97-
}
98+
},
99+
revealOutputChannelOn: RevealOutputChannelOn.Never
98100
}
99101

100102
outputChannel.dispose()

0 commit comments

Comments
 (0)