-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(biome): find root when using biome.jsonc #4774
Conversation
fcc0c88
to
4da71a8
Compare
Guessing adding Edit: yeah that ended up being it, though I'm not quite sure why. I just created a new |
The new commits still do not solve the issue for me. I get these errors.
I do not understand since when I run the command Why does Ale try to start the language server? If I look here, that is the command I also run in my terminal which works. vimcr:
biome.json:
|
This is generally faster for linting because it can see changes as you type. Otherwise ALE would have to continually poll the Could you please try adding this line to see if it fixes the LSP for you?:
I usually need to run I wonder if the fixer should also use the same logic unless you're explicitly adding I actually have some changes locally I haven't pushed up yet that change how the options work. I was thinking that since the only option shared across all commands is |
This branch makes it work for me.
was not even necessary for it but worked with it too. It does not even have to do anything with one of the searched files However, this works now with no configuration needed for me. Thank you very much. |
@hsanson For me, this one works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but has some conflicts that need to be resolved before I can merge.
Since biome supports either `biome.json` or `biome.jsonc` config files, we need to look for both when searching for the LSP project root. We can also look for a package.json or .git folder to use. This uses mostly the same logic as deno.
@hsanson Thanks! Just updated to fix the conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Since biome supports either
biome.json
orbiome.jsonc
config files, we need to look for both when searching for the LSP project root. We can also look for a package.json or .git folder to use. This uses mostly the same logic as deno.I added some documentation for the new option and explained the new logic. This is pretty much copied from the deno documentation (and code) with some minor tweaks. Probably could refactor to some shared code at some point, just not sure where to put it.
I also added a couple tests and made sure tests and linting pass locally.
This will have minor conflicts with #4763 and #4773 but I wanted to keep the commits fairly atomic and the conflicts will be quick to clean up.