Skip to content

Commit 4dc36a2

Browse files
authored
Fix missing --lsp and ghcide cli args
1 parent b1c894a commit 4dc36a2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/extension.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,16 @@ function activateHieNoCheck(context: ExtensionContext, folder: WorkspaceFolder,
141141

142142
const runArgs: string[] = ['--lsp'];
143143
let debugArgs: string[] = ['--lsp'];
144-
if (logLevel === 'messages') {
145-
debugArgs = ['-d'];
146-
}
144+
145+
// ghcide does not accept -d and -l params
146+
if (hieVariant !== 'ghcide') {
147+
if (logLevel === 'messages') {
148+
debugArgs = debugArgs.concat(['-d']);
149+
}
147150

148-
if (logFile !== '') {
149-
debugArgs = debugArgs.concat(['-l', logFile]);
151+
if (logFile !== '') {
152+
debugArgs = debugArgs.concat(['-l', logFile]);
153+
}
150154
}
151155

152156
// If the extension is launched in debug mode then the debug server options are used,

0 commit comments

Comments
 (0)