Skip to content

A common platform for PowerShell development support in any editor or application!

License

Notifications You must be signed in to change notification settings

mattpwhite/PowerShellEditorServices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell Editor Services

Join the chat at https://gitter.im/PowerShell/PowerShellEditorServices

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).

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

Important note regarding the .NET APIs in Microsoft.PowerShell.EditorServices.dll

With the 1.0 release of PowerShell Editor Services, we have deprecated the public APIs of the following classes:

  • EditorSession
  • LanguageService
  • DebugService
  • ConsoleService
  • AnalysisService
  • ExtensionService
  • TemplateService

The intended usage model is now to host PowerShell Editor Services within powershell.exe and communicate with it over named pipes (or Unix domain sockets on macOS & Linux) via the Language Server Protocol and Debug Adapter Protocol. Detailed usage documentation for this module is coming soon!

Build Status

AppVeyor (Windows) Travis CI (Linux / macOS)
Build status Build Status

Documentation

Check out our documentation site for information about how to use this project. You can also read our plans for future feature development by looking at the Development Roadmap.

Installation

TODO: Add information about acquiring packages from NuGet and npm once those are available.

Development

1. On Linux or macOS, install PowerShell Core

If you are using Windows, skip this step. If you are using Linux or macOS, you will need to install PowerShell by following these instructions.

If you are using macOS you will need to download the latest version of OpenSSL. The easiest way to get this is from Homebrew. After installing Homebrew execute the following commands:

  brew update
  brew install openssl
  mkdir -p /usr/local/lib
  ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
  ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

2. On Windows, install the .NET 4.5.1 Targeting Pack

NOTE: This is only necessary if you don't have Visual Studio installed

If you try to build the code and receive an error about a missing .NET 4.5.1 Targeting Pack, you should download and install the .NET Framework 4.5.2 Developer Pack.

3. Clone the GitHub repository:

git clone https://github.com/PowerShell/PowerShellEditorServices.git

4. Install Invoke-Build

This step requires PowerShellGet, included by default with PowerShell v5 and up but installable on PowerShell v3 and v4.

Install-Module InvokeBuild -Scope CurrentUser

Now 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 Build

Building 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

License

This project is licensed under the MIT License.

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.

About

A common platform for PowerShell development support in any editor or application!

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 92.4%
  • PowerShell 7.3%
  • Shell 0.3%