Inside the editor, open src/extension.ts and press F5. This will compile and run the extension in a new Extension Development Host window.
To run unit tests run: npm test
npm install
npm install -g vsce
vsce package
code --install-extension ./windmill-<version>.vsix
orcursor --install-extension ./windmill-<version>.vsix
It is worth noting that sed works differently on Mac and Linux/Windows. The scripts below may need to be adjusted if you are on Mac.
{
"scripts": {
"switch-node": "sed -i '' 's/import { testBundle } from \".\\/esbuild.web\";/import { testBundle } from \".\\/esbuild\";/g' src/extension.ts",
"switch-web": "sed -i '' 's/import { testBundle } from \".\\/esbuild\";/import { testBundle } from \".\\/esbuild.web\";/g' src/extension.ts",
}
}