Contributing to "Flat File Viewer"
Clone repo. Open in VSCode.
Install "nvm".
nvm install and nvm use. This will install and use the version of Node.js specified in the .nvmrc file.
nvm quirk: You must run nvm use every time you open a new terminal window, or add nvm use to your shell profile.
Check installed/activated version: node --version should show the same version as in .nvmrc.
npm install
Open the src/extensions.ts file.
Press F5 in VSCode to launch the extension in the VSCode Extension Development Host.
In the temporary testing window, press Ctrl+Shift+I to open Inspect Element/Dev Tools. The Console there is the best debugging tool.
git tag v2.x.x
git push origin v2.x.x
# GitHub Action takes care of the rest, including updating the version number, publishing, and GitHub Release.
Publishing a Release (Manually)
Update the version number in package.json.
Package all release versions: ./package.sh
Publish the release to the VSCode Marketplace: vsce publish --packagePath dist/*.vsix
Add a GitHub Release, attaching the build products (dist/*.vsix).