-
Notifications
You must be signed in to change notification settings - Fork 37
Home
Hudson Oliveira edited this page Jul 4, 2020
·
5 revisions
Welcome to the vscode-hg wiki!
- Node.js: Node.js Download page
- Mercurial: Mercurial SCM Downloads page
- Visual Studio Code: Visual Studio Code Downloads page
-
Fork the repository and clone your fork
- Hint: use GitHub Desktop for cloning
- Optionally, download and install git and clone it from Visual Studio Code or from the command line
- In Visual Studio Code, open your repository folder
- Install npm dependencies: open the terminal and run
npm install
- Compile the code: run
npm run compile
From the opened repository in VS Code, press F5. Alternatively, go to the debug menu and click Start Debugging.
This will open another version of VS Code in extension debug mode. Here you can test changes. It is useful to inspect the HG log, by Ctrl + Shift + P
-> Hg: Show hg log.
When updating extension code you will need to restart the VS code running on debug mode. This can be done using the green restart button on the debug menu at the top of the screen or by pressing Ctrl + Shift + F5
Make sure your code is lint-free and formatted before opening a pull request.
- Install Prettier - Code formatter extension for VS Code for automatic formatting
- Run task 'npm: lint' in VS Code to list lint warnings and errors