Run your own scripts with vsc-base (includes methods for vscode, fs.extra, ts).
See .vsc-script folder in source for examples.
Full documentation for vsc-base can be found on http://vsc-base.org
The extensions can be installed from vscode marketplace.
Why vsc Script?
You couldt always just run js/ts runs in your system with nodejs, but this extension gives you the context of vscode.
Commen methods that make custom scripting easy can be found in the examples in .vsc-script folder in this source code.
Dev (Create vsc-script)
A script file is written in typescript.
You can use these modules in your script: vsc-base, fs-extra, vscode and typescript:
The script must export one async function named 'run' that takes an Uri (vscode.Uri).
The uri is the path to the file/folder right-clicked in vscode when the user runs the script.
onSave script's (Preview)
vsc-script also accepts name.vsc-script-onsave.ts files.
They wil be executed on save (in alphabetical order).
Dont have to many (They will slow down vscode save)
vsc-script is based on vsc-base. (And vsc-base, vsc-base.org, vsc-script and vsc-scaffolding shares one mono-respo)
vsc-base will get more convenient method over time for working with folder/files, paths, strings and other elements that make it easier to create vscode extension and writen vsc-scripts.