robb0wen / synthwave-vscode

Synthwave inspired colour theme for VS Code 🌅🕶
MIT License
5.14k stars 1.18k forks source link

Add local VSCode build tasks #278

Open gregdolley opened 1 year ago

gregdolley commented 1 year ago

Allows you to build and deploy your SynthWave extension changes right into your locally installed VSCode instance (an editor reload is required for some changes to take effect). You can also make a private .vsix extension install file for a friend to use and you don't have to worry about those changes ever ending up in the live marketplace.

In VSCode, open your command palette and select "Run Task...", you will see three new options:

1) Run build 2) Install extension to local VSCode instance 3) Build and install extension to local VSCode instance

"Run build": only builds the .vsix extension install file and places it in the root folder of the project. Use this if you want to share a private version of the extension with a friend, or install the extension on another machine. On the destination machine, run this command to install it in VSCode:

code --install-extension <path to .vsix install file>

Example:

code --install-extension ~/synthwave-vscode-0.1.14.vsix

"Install extension to local VSCode instance": if you previously ran the "Run build" task, then choose this task to have VSCode automatically install the .vsix extension file for you (basically it's just running the example command above and reporting if there were errors in the task terminal window).

"Build and install extension to local VSCode instance": basically runs task #1 and #2 (build and install extension) as a single command reporting success or errors to the task terminal window.

Note: since these tasks depend on bash scripts, this feature can only be used on a Mac and Linux for now. I'll add the equivalent Windows configuration sometime soon.