Skip to content

Commit 783117f

Browse files
authored
Trace server commands and args in the client side
I've found them useful to diagnose lsp server crashes
1 parent 4dc36a2 commit 783117f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ function activateHieNoCheck(context: ExtensionContext, folder: WorkspaceFolder,
163163
// Set a unique name per workspace folder (useful for multi-root workspaces).
164164
const langName = 'Haskell HIE (' + folder.name + ')';
165165
const outputChannel: OutputChannel = window.createOutputChannel(langName);
166+
outputChannel.appendLine('[client] run command = "' + serverPath + ' ' + runArgs.join(' ') + '"');
167+
outputChannel.appendLine('[client] debug command = "' + serverPath + ' ' + debugArgs.join(' ') + '"');
166168
const clientOptions: LanguageClientOptions = {
167169
// Use the document selector to only notify the LSP on files inside the folder
168170
// path for the specific workspace.

0 commit comments

Comments
 (0)