-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example for Testing extensions does not work on Windows. #7328
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
I started experiencing the same issue during vscode testing. For a long time, I had no issues, but my agent pool image updated and cp.spawnSync silently stopped installing the extension required. Reproduces the error (agent pool vm): Does not reproduce the error (dev machine): Using the |
Modern versions of test-electron include a helper you can use, e.g.
|
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
The problem is that on Windows, the
cli
evaluates to%vscodeTestDir%\bin\Code
that is not a Windows executable, but a bash shell script, so direct invocation usingspanwSync
fails. There must beshell: true
option for thespawnSync
that launches the command using windows command shell, that properly recognizes presence ofCode.cmd
and uses that.Please correct the example in the extension development guide.
The text was updated successfully, but these errors were encountered: