-
Notifications
You must be signed in to change notification settings - Fork 335
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
eslint.runtime
does not respect current opened folder bug
#1671
Comments
alexanderniebuhr
changed the title
Jun 28, 2023
eslint.runtime
does not work for workspace contexteslint.runtime
does not respect current opened folder bug
Actually this is a dup of #1602. In a normal setup we don't start the eslint server on the workspace folder hence it doesn't see the version definition. What you can try as a workaround for now is to point Closing as dup of #1602 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using
[proto](https://moonrepo.dev/proto)
for my node version managment.proto works by automatically choosing the right node version for a specific folder it is run in.
This works great in any terminal, even in the integrated VS Code one. However if you run proto in a directory where no version definition is set, it will fall-back to a default version.
setting
"eslint.runtime": "node"
, does pick-up the fall-back version, and overwrites the bundled node version of VS Code, which is great. However it does not respect the per-project versions. Therefore I expect that theeslint.runtime
is derived/evaluated before the folder is loaded in VS Code, soproto
will not see the folder context and therefore provide the fall-back value and not the correct version.Is my assumption correct?
Can you change the behaviour, so that the
eslint.runtime
command is ran against the workspace folder?maybe related to: #1602
The text was updated successfully, but these errors were encountered: