Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsp-roslyn: make it compatibale with emacs-lsp-booster for windows #4560

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading