Skip to content

Commit

Permalink
lsp-roslyn: make it compatibale with emacs-lsp-booster for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kiennq committed Sep 23, 2024
1 parent e87fbdc commit f60f766
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions clients/lsp-roslyn.el
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ Gotten from https://dev.azure.com/azure-public/vside/_artifacts/feed/vs-impl/NuG
:sentinel sentinel
:stderr stderr-buf
:noquery t
:command (list "PowerShell" "-NoProfile" "-ExecutionPolicy" "Bypass" "-Command" lsp-roslyn--stdpipe-path "." lsp-roslyn--pipe-name)))
:command (lsp-resolve-final-command
`("PowerShell" "-NoProfile" "-ExecutionPolicy" "Bypass" "-Command"
,lsp-roslyn--stdpipe-path "."
,lsp-roslyn--pipe-name))))
(t (make-network-process
:name process-name
:remote lsp-roslyn--pipe-name
Expand All @@ -143,12 +146,11 @@ creates another process connecting to the named pipe it specifies."
:filter 'lsp-roslyn--parent-process-filter
:sentinel sentinel
:stderr parent-stderr-buf
:command (append
(list lsp-roslyn-dotnet-executable
(lsp-roslyn--get-server-dll-path)
(format "--logLevel=%s" lsp-roslyn-server-log-level)
(format "--extensionLogDirectory=%s" lsp-roslyn-server-log-directory))
lsp-roslyn-server-extra-args)
:command `(,lsp-roslyn-dotnet-executable
,(lsp-roslyn--get-server-dll-path)
,(format "--logLevel=%s" lsp-roslyn-server-log-level)
,(format "--extensionLogDirectory=%s" lsp-roslyn-server-log-directory)
,@lsp-roslyn-server-extra-args)
:noquery t)))
(accept-process-output command-process lsp-roslyn-server-timeout-seconds) ; wait for JSON with pipe name to print on stdout, like {"pipeName":"\\\\.\\pipe\\d1b72351"}
(when (not lsp-roslyn--pipe-name)
Expand Down

0 comments on commit f60f766

Please sign in to comment.