Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
shell: true
option for modern VSCode on Windows (#9242)
Summary: 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`](https://www.npmjs.com/package/bin-version) which calls [`execa`](https://github.com/sindresorhus/execa) which calls [`cross-spawn`](https://github.com/moxystudio/node-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. Pull Request resolved: #9242 Reviewed By: SamChou19815 Differential Revision: D67295692 fbshipit-source-id: 68e7f68bb6e2593f3579e00a7bbf402b4be0f014
- Loading branch information