Run the active file in the VS Code integrated terminal. Designed to be installable alongside other similar extensions by using a different id/publisher.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Simple VS Code extension to run the currently open file in the integrated terminal.
This extension uses a different name/publisher so it can be installed alongside other similar extensions.
Features
Runs the active file using a command mapped to the file extension.
Configure salangRunner.customMapping in Settings to add or override mappings.
Installation (developer / manual)
Create a folder named salang-code-runner-side.
Put the files (package.json, extension.js, README.md, CHANGELOG.md) into that folder.
Open the folder in Visual Studio Code.
To test in development mode: Press F5 to launch an Extension Development Host instance. Open a file there and run the command Run Current File (SaLangDev Side) from the Command Palette.
To create a VSIX for distribution (optional): install vsce (npm i -g vsce) and run vsce package inside the folder. That produces a .vsix you can install with "Install from VSIX...".
Usage
Open the file you want to run.
Run the command palette (Ctrl+Shift+P) → Run Current File (SaLangDev Side).
The extension saves the file and runs the associated command for the file extension in the integrated terminal.
Configuration
Settings (search salangRunner in VS Code Settings):
salangRunner.customMapping (object) — map file extensions to commands, for example: