Skip to content

Latest commit

 

History

History
56 lines (31 loc) · 2.13 KB

File metadata and controls

56 lines (31 loc) · 2.13 KB

Setup

This section will cover how to setup your environment for this extension, and how to manually debug and test it.

Startup

Fork and Clone

First of all, fork this repository into your github account and clone it on your local machine.

Install NodeJS

NodeJS is required for this project, but don't worry, to keep things clear and avoid colliding NodeJS versions with your other projects, we do support Mise.

The easiest way to use NodeJS for this project is to use mise. See their documentation for the installation process.

Although, this is also possible to use NodeJS without this if you wish. Install it manually, see their documentation to get more installation details. Remember that we use the version @25.2.1, but you probably can use newer versions.

Install dependencies

To install dependencies, just run:

$ npm install

Running in developer mode

To be able to run this extension locally, you need to compile it first:

$ npm run compile

Then you need to open a new debug window with our extension loaded.

So press F5.

Warning

If you're using a compact keyboard (i.e. laptop), make sure you have Fn activated. Some devices allow you to toggle Fn via Fn Lock, otherwise, use the key combination Fn + F5.

Reloading extension

Remember, after some code change you need to compile it again and then reload your debugging window.

Closed Debugging Window

If you have your debugging window running, you can follow the same steps as mentioned before.

Compile it again with npm run compile, then open the debugging window via F5.

Debugging Window already open

If you have a debugging window open, you still need to recompile your project, but you don't need to close your debugging window to be able to reload your extension.

On your development window, compile it with npm run compile, then open your debugging window and reload with Ctrl + R (Cmd + R on Macbook).