-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
🐛 No highlighting in vs code workspaces #18
Comments
By highlighting, do you mean warnings and errors underlined with squiggly lines ? |
Yes. |
Thanks for clarifying @AdrianSchmidt91. |
I am experiencing the same issue however i did a few more tests and it was actually working with workspaces when the folder that contains the biome config is actually the first one in the workspace configuration. So for example this works (if projecta has biome config but projectb and c dont have it:
but this doesnt work:
so it seems to be an issue of the order of the folders in the workspace?! please note that within the workspace config there was no additional config parameters other than the folders |
Also the "Format Document With.." will then not display "Biome" if the biome-project is not at first place in that folders array. |
The same problem occurs when using biome for a single project in a monorepo like pnpm workspaces. Having a No syntax highlighting, and Biome won't show up as a formatter in vs code. |
The VS Code extension currently uses the |
@nhedger what does this mean for us? Sorry, I don't know how to interpret your comment 😅 |
Went a bit fast over this last time. I believe there to be two factors to this issue:
|
Having this issue also, in vscode it seems to just ignore my project's |
Coming from #75:
I can confirm (based on my issue above) that it seems to use the first config file it finds in the list of folders in the workspace. I believe Prettier's extension works down-up instead: using whichever file was saved, it should traverse up the directory tree and use the first |
I think the way Prettier works here should be the way to go indeed. That would work well with both workspaces and monorepos. |
I get kind of the same issue. Only when I put the biome.json in the root of my monorepo project, the biome plugin take into account my defined rules. |
I'm going to close this issue. People can follow biomejs/biome#1573 for updates. The LSP doesn't support workspaces yet |
Apologies for commenting on a closed issue, but does this actually work? When attempting to use Biome in a VS Code project with no workspace configuration, I'm not getting any highlighting whatsoever, so I was a little confused to see this 🤷? |
I might be doing something wrong but has anybody figured out how to get highlights working when the JS project is in a subfolder? I have a JS project under {
"biome.projects": [
{
"path": "js"
}
]
} However, I'm not getting any highlights. I've restarted code but that doesn't help either. I'm running
|
Environment information
What happened?
Open a workspace in vs code (for eg. an application that runs in combination with an other combination)
Highlighting does not work
Open the files without workspaces - highlighting works.
Expected result
That highlighting is working
Code of Conduct
The text was updated successfully, but these errors were encountered: