With Visual Studio Code:
- Clone this repository locally.
- Run
npm installin the clonedcodewind-ls-node-proffolder. This installs all necessary npm modules in both the client and server folder - Open the clone of this repository in Visual Studio Code.
- Press Ctrl+Shift+B (Cmd+Shift+B on Mac) to compile the client and server.
- Switch to the Debug viewlet.
- Select
Launch Clientfrom the drop down and press the Run icon. - If you want to debug the server as well use the launch configuration
Attach to Server.
Setup:
- Run
npm installin thecodewind-ls-node-proffolder.
In Visual Studio Code:
- Press Ctrl+Shift+B (Cmd+Shift+B on Mac) to compile the client and server.
- Run
npm run prepare-testsin thevscode/clientfolder. - Switch to the Debug viewlet.
- Select
Language Server E2E Testfrom the drop down. - Run the test config.
- An additional editor will momentarily open while the tests are run. It will close automatically once they are complete.
- Switch to the output view with Ctrl+Shift+U (Cmd+Shift+U on Mac) to see the results of the tests.
To build a .vsix extension package that can then be installed/published:
- Run
npm installin thecodewind-ls-node-proffolder. - Install the
vscepackage globally withnpm install -g vsce. - Run
vsce packagein thecodewind-ls-node-proffolder. - A
.vsixfile will then be generated.
To install the extension:
- Run
code --install-extension <name of generated vsix file>in thecodewind-ls-node-proffolder. - Restart Visual Studio Code.
- The extension should appear in your list of installed extensions.
For more information refer to: https://code.visualstudio.com/api/working-with-extensions/publishing-extension