Microsoft's documentation for VS Code extensions is suprisingly good (https://code.visualstudio.com/docs/extensions/overview);
Fortunately VSCode has js/ts support out of the box.
- install VS Code,
npm
,nodejs
- clone project
- disable auto carriage return
git config core.autocrlf false; git reset --hard
- open VS Code, select project's folder, open terminal and type
npm install
(this will download dependencies) - Run by clicking Ctrl+F5, new VS window will open
Using Travis CI (https://travis-ci.org/rogalmic/vscode-bash-debug)
- Every push to master will create a release in github with
vsix
package for testing - Every tag pushed to master matching
v1.2.3
will trigger a deploy to VSCode extension repo with this version.- Remember to use proper commit messages.
- Keep version in project.json same as version in git tag, best to achieve by running
npm run release -- --release-as minor
to bump version and create commit with proper tag at the same time. - Push the tag
git push origin v1.2.3
, this will start the publish build in TravisCI.