Custom Line Sort icon

Custom Line Sort Development

Testing

Install Bun and run the test suite from the project root:

./test

The script type-checks the project and runs Bun's test suite. Pass test-runner arguments to run a subset of the tests:

./test src/line-length-sort.test.ts

Run a full TypeScript type check with:

bun run check

Deployment

Run ./deploy from the project root to create a VSIX package using the version in package.json:

./deploy

The command clears .build and .deploy, runs bunx @vscode/vsce package, and writes the package to .deploy/<publisher>.<name>-<version>.vsix, using the publisher and name values from package.json. It also writes the source maps from .build/ to .deploy/<publisher>.<name>-<version>-maps.tar.xz, or uses .tar.bz2 or .tar.gz when the earlier compression tool is unavailable.

Pass a version number to update package.json before the package is created:

./deploy 1.2.3

The version must contain exactly three numeric components, such as 1.2.3. The change to package.json is kept after deployment, so review and test it before publishing the package to Codeberg, Open VSX, or the Visual Studio Marketplace.