You'll need to clone two repositories and set up your development environment to before you can proceed.
-
Follow the development instructions for PowerShell Editor Services. You will need to complete this step before proceeding.
-
Install the latest Visual Studio Code Insiders release
- You can also use the standard Visual Studio Code release. Both will work, but using VSCode Insiders means the extension can be developed ready for new features and changes in the next VSCode release.
-
Install Node.js 10.x or higher.
Press Ctrl+P and type task build
This will compile the TypeScript files in the project to JavaScript files.
Invoke-Build Build
To debug the extension, press F5. To run the extension without debugging, press Ctrl+F5 or Cmd+F5 on macOS.
code --extensionDevelopmentPath="c:\path\to\vscode-powershell" .
For more information on contributing snippets please read our snippet requirements.