Development scripts don't work on VSCode if using WSL workspace
Logging this in case others run into the same problem. Not only does it not work but it'll add unwanted extensions to your VSCode installation, so it's best to avoid. The root cause is that --extension-dir is ignored when running VSCode via WSL (it logs Ignoring option 'extensions-dir': not supported for code.). Neither "Run Extension" or "Extension Tests" work, presumably due to this.
The workaround is straightforward: install the native Windows version of Node.js and use a non-WSL workspace. Everything works fine through Powershell.
I'm happy to add a quick note to the documentation to help others avoid this, perhaps on Step 2 here: https://www.cursorless.org/docs/contributing/
Yikes.
I'd be inclined to do two things:
- Add to the docs, as suggested.
- Detect the missing support for
--extensions-dirsomehow. I'm not sure how hard this would be.