- VS Code is a good reference point for the "correct" behavior for code navigation functionality.
- Keep a local checkout of Microsoft/TypeScript for checking out code examples. Most TypeScript APIs are lacking in documentation, so reading the code is the best way to understand how things work.
npm run testnpm run update-snapshots
Generate snapshots and update.
cd /path/to/dir
DIR=/path/to/scip-typescript "$DIR/node_modules/.bin/ts-node" "$DIR/src/main.ts" index # add --yarn-workspaces if applicable
lsif-typed index.scip > dump.lsif # from github.com/sourcegraph/sourcegraph/lib/codeintel/tools/lsif-typed
lsif-java snapshot-lsif # from github.com/sourcegraph/lsif-java- Run the
dev/bump-versionscript. This will create a PR with the ChangeLog.The GitHub token is needed because fetching PR information for generating the ChangeLog can run into GitHub rate limits.GITHUB_TOKEN="" ./dev/bump-version <version> - After the PR is merged, update your
mainbranch and tag the commit.A GitHub Action should be triggered by the push; it will publish:git checkout main git pull --ff-only git tag v<version> git push v<version>
- A new version of scip-typescript to npm.
- A Docker image to Docker hub, using the new version of scip-typescript.