Skip to content

Commit d019e83

Browse files
authored
Fixes parameters for running nimlangserver.cmd on Windows fixes #80 (#84)
1 parent b5bc39c commit d019e83

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/nimLsp.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ proc startLanguageServer(tryInstall: bool, state: ExtensionState) {.async.} =
243243

244244
let
245245
serverOptions = ServerOptions{
246-
run: Executable{command: nimlangserver, transport: TransportKind.stdio },
247-
debug: Executable{command: nimlangserver, transport: TransportKind.stdio }
246+
run: Executable{command: nimlangserver, transport: TransportKind.stdio, options: ExecutableOptions(shell: true)},
247+
debug: Executable{command: nimlangserver, transport: TransportKind.stdio, options: ExecutableOptions(shell: true)}
248248
}
249249
clientOptions = LanguageClientOptions{
250250
documentSelector: @[DocumentFilter(scheme: cstring("file"),

src/platform/languageClientApi.nim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ type
1515
pipe = 2,
1616
socket = 3
1717

18+
ExecutableOptions* = ref ExecutableOptionsObj
19+
ExecutableOptionsObj {.importc.} = object of JsObject
20+
shell*: bool
21+
1822
Executable* = ref ExecutableObj
1923
ExecutableObj {.importc.} = object of JsObject
2024
command*: cstring
2125
transport*: TransportKind
26+
options*: ExecutableOptions
2227

2328
ServerOptions* = ref ServerOptionsObj
2429
ServerOptionsObj* {.importc.} = object of JsObject

0 commit comments

Comments
 (0)