Append the subproject to our output channels

This commit is contained in:
Kolja Lampe
2019-07-10 00:30:23 +02:00
parent d04d2ee68b
commit 88e02cd4e9

View File

@@ -119,7 +119,17 @@ function startClient(context: ExtensionContext, elmWorkspace: Uri) {
},
run: { module: serverModule, transport: TransportKind.ipc },
};
const outputChannel: OutputChannel = Window.createOutputChannel("elmLS");
if (!workspace.workspaceFolders) {
return;
}
const outputChannel: OutputChannel = Window.createOutputChannel(
"elmLS " +
elmWorkspace
.toString(true)
.replace(workspace.workspaceFolders[0].uri.toString(true), ""),
);
// Options to control the language client
const clientOptions: LanguageClientOptions = {