Skip to content
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

Add shell: true option for modern VSCode on Windows #9242

Closed
wants to merge 1 commit into from

Conversation

edemaine
Copy link
Contributor

@edemaine edemaine commented Dec 16, 2024

As reported automatically in flow/flow-for-vscode#458, this plugin needs to engage the shell to launch the LSP on modern VSCode on Windows, because the script is generally installed as flow-bin/cli.cmd and only the shell can execute those.

(port of flow/flow-for-vscode#464)

Personally I still have issues using this plugin in my setup, because of the use of bin-version which calls execa which calls cross-spawn, which doesn't seem to support Flow via yarn on Windows (which creates .js files but no .cmd/.bat` file) — not sure exactly why. In the future, I'd suggest moving away from this rather heavy chain of dependencies. Let me know if you'd like a PR to that effect.

To test: simply run this extension in development on a Windows machine, and load any Flow project. It should work with this PR, but fail to load without it.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 394ad79.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants