talira

PowerShell Editor Services

The PowerShell language server and debug adapter for any editor

open sourceMITfree

PowerShell Editor Services is Microsoft's PowerShell module that gives editors PowerShell support over the Language Server Protocol and the Debug Adapter Protocol: completions, go to definition and find references, real-time analysis with PSScriptAnalyzer, debugging with breakpoints, variables and the call stack, an interactive Extension Terminal and the $psEditor API for scripting the editor. It runs on PowerShell 7 and later, with Windows PowerShell 5.1 on a best-effort basis. Microsoft's PowerShell extension for VS Code is built on it, and community plugins use it in Emacs, IntelliJ IDEs, Vim and Neovim.

Problems it solves

  • get PowerShell autocomplete and go to definition in Neovim
  • debug a PowerShell script from my editor
  • lint PowerShell scripts as I type

Features

  • PowerShell language server
  • debug adapter
  • PSScriptAnalyzer diagnostics
  • Extension Terminal
  • $psEditor API

Limitations

  • Runs on PowerShell 7 and later; Windows PowerShell 5.1 is supported on a best-effort basis1
  • Its clients for editors other than VS Code are community maintained and may be out of date1

Alternatives

The same job

These do what PowerShell Editor Services does.

  1. Intelephense Code intelligence for productive PHP developers
  2. Java Language Server A Java language server built on the Java compiler API, for VS Code, Vim, Emacs, Kate and Sublime

Compare PowerShell Editor Services with the top 3