Skip to content

Commit eb61770

Browse files
committed
vscode-dotty: Use the same output channel for the client and server
1 parent fd42e44 commit eb61770

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vscode-dotty/src/extension.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let outputChannel: vscode.OutputChannel
1515

1616
export function activate(context: ExtensionContext) {
1717
extensionContext = context
18-
outputChannel = vscode.window.createOutputChannel('Dotty Language Client');
18+
outputChannel = vscode.window.createOutputChannel("Dotty");
1919

2020
const sbtArtifact = "org.scala-sbt:sbt-launch:1.2.3"
2121
const buildSbtFile = `${vscode.workspace.rootPath}/build.sbt`
@@ -158,12 +158,11 @@ function run(serverOptions: ServerOptions) {
158158
synchronize: {
159159
configurationSection: 'dotty'
160160
},
161+
outputChannel: outputChannel,
161162
revealOutputChannelOn: RevealOutputChannelOn.Never
162163
}
163164

164-
outputChannel.dispose()
165-
166-
const client = new LanguageClient('dotty', 'Dotty Language Server', serverOptions, clientOptions);
165+
const client = new LanguageClient("dotty", "Dotty", serverOptions, clientOptions)
167166

168167
// Push the disposable to the context's subscriptions so that the
169168
// client can be deactivated on extension deactivation

0 commit comments

Comments
 (0)