PowerShell Editor Services
PowerShell Editor Services is a PowerShell module that provides common functionality needed to enable a consistent and robust PowerShell development experience in almost any editor or integrated development environment (IDE).
PowerShell Language Server Protocol clients using PowerShell Editor Services
The functionality in PowerShell Editor Services is already available in the following editor extensions:
- The VSCode PowerShell extension, also available in Azure Data Studio
- coc-powershell, a vim/neovim PowerShell plugin
- The IntelliJ PowerShell plugin
- lsp-powershell, an Emacs PowerShell plugin
Features
- The Language Service provides common editor features for the PowerShell language:
- Code navigation actions (find references, go to definition)
- Statement completions (IntelliSense)
- Real-time semantic analysis of scripts using PowerShell Script Analyzer
- The Debugging Service simplifies interaction with the PowerShell debugger (breakpoints, variables, call stack, etc)
- The $psEditor API enables scripting of the host editor
- A full, terminal-based Integrated Console experience for interactive development and debugging
Development
1. Install PowerShell 6+
Install PowerShell 6+ with these instructions.
3. Clone the GitHub repository:
git clone https://github.com/PowerShell/PowerShellEditorServices.git
4. Install Invoke-Build
Install-Module InvokeBuild -Scope CurrentUserNow you're ready to build the code. You can do so in one of two ways:
Building the code from PowerShell
PS C:\path\to\PowerShellEditorServices> Invoke-Build BuildBuilding the code from Visual Studio Code
Open the PowerShellEditorServices folder that you cloned locally and press Ctrl+Shift+B (or Cmd+Shift+B on macOS).
Contributions Welcome!
We would love to incorporate community contributions into this project. If you would like to contribute code, documentation, tests, or bug reports, please read our Contribution Guide to learn more.
Maintainers
- Keith Hill - @r_keith_hill
- Patrick Meinecke - @SeeminglyScienc
- Tyler Leonhardt - @TylerLeonhardt
- Rob Holt - no twitter
License
This project is licensed under the MIT License.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.