-
Notifications
You must be signed in to change notification settings - Fork 339
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
Plugin in workspace not working anymore #1201
Comments
@ChiefORZ the root of this is the user confirmation that I added for the This being said your setup should still work but needs some modifications which I have not thought about before. The short answer is: add the
Although the value can be defined in a workspace folder it was never honored as a different value across folders. The confirmation dialog now requires to have that value defined in the workspace folder. I apologize for the breakage. Haven't thought about that case. Let me know if it addresses your problem? |
If it doesn't help can you point to to a git repository I can clone that demos what you are seeing |
@dbaeumer I had the same issue and yes your solution addresses the problem! I spent 3 hours wondering why ESLint just stopped working on me. Until I came across this issue. As you said above, adding Also, thank you for your work on VSCode ESLint. If not for ESLint being integrated into VSCode, I wouldn't bother much about formatting and linting. Would probably have been an afterthought. It definitely saves a lot of time and energy. Thanks again! |
@shripadk I apologize for this but that it worked in the past was more or less coincidence and not wanted. But I see the need to let users know about the fact the in a multi root workspace the settings need to be put into the settings setting of a code workspace. I will add a corresponding notification. |
I added a corresponding warning so that users are aware of this. The underlying reason for this not working in a multi folder setup is that I only start one node process and that therefore only one value can be used. This ensures that the right value is used. |
I will close the issue since I assume that this addresses @ChiefORZ problem as well. |
re-opening the issue - i created a demo repository were we can discuss different things: https://github.com/ChiefORZ/vscode-eslint-workspaces
In the meantime i have to work with each project working in it's own window - but i have to admit, i really dont like it that way - the workspaces feature of vscode is a must-have <3 |
i now discovered that you can roll-back to a specific addon's version. |
As pointed out previously the Do you have a After adding the value to the {
"folders": [
{
"name": "project-a",
"path": "project-a"
},
{
"name": "project-b",
"path": "project-b"
}
],
"settings": {
"eslint.nodePath": ".yarn/sdks"
}
} I get the following dialog After Confirming the The confirmation step is necessary due to VS Code's advice that settings that alter the execution behavior of launched programs need to ask for user consent. |
Kind off topic, but it'd be nice if there was a single switch to all such usages (from a same project). Currently engs at my company have to accept using the repository binaries for each of ESLint, Prettier, and TS (and probably others I forget). |
@arcanis This will come. See Trusted Workspaces on the VS Code plan: microsoft/vscode#118334 |
From one day to the other the eslint plugin is not working for workspaces anymore... i have around 20 projects in my workspace and in every project is a yarn berry setup with the following config:
when i open this project in a separate vscode window - it will work without any problems.
additional info:
when trying to selecting the node path in the workspace - it only offers the default
but when trying in the project itself it detects the
eslint.nodePath
defined in thesettings.json
and outputs the correct loaded eslint library
The text was updated successfully, but these errors were encountered: