Deprecated
Development has been moved to lsp-mode.
lsp-mode client leveraging PowerShellEditorServices
You may need powershell-mode for syntax highlighting. The installation instructions bellow assumes that you've already have that.
Ensure you have installed PowerShell Core before continuing - PowerShell is required to download and run the language server.
Using straight.el
(use-package lsp-pwsh
:straight (lsp-pwsh
:host github
:repo "kiennq/lsp-powershell")
:hook (powershell-mode . (lambda () (require 'lsp-pwsh) (lsp)))
:defer t)
Using quelpa with quelpa-use-package.
(use-package lsp-pwsh
:quelpa (lsp-pwsh :fetcher github :repo "kiennq/lsp-powershell")
:hook (powershell-mode . (lambda () (require 'lsp-pwsh) (lsp-deferred)))
:defer t)
You can customize lsp-pwsh-dir
and lsp-pwsh-cache-dir
as you see fit.
To redownload the latest version of PowerShellEditorServices,
use C-u M-x lsp-pwsh-setup
.
Supported via dap-mode.
lsp-pwsh
provided dap-pwsh
, which's an extension for dap-mode
.