-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Proposal to rename "quickfix.biome" to "source.fixAll.biome" #3339
Comments
That's definitely a sound proposal. I wouldn't change it right away because it would break people's code. We can add it, deprecate the current when, and remove it in V2. How does that sound? |
@ematipico yes, sounds good. Not breaking anyone workflow is a good option. |
I noticed this code action already exist
biome/crates/biome_analyze/src/categories.rs Lines 95 to 97 in 8ed14cd
|
@suxin2017 It does but it's not currently used in the LSP biome/crates/biome_lsp/src/handlers/analysis.rs Lines 163 to 164 in fe09cab
|
biome/crates/biome_lsp/src/handlers/analysis.rs Lines 24 to 25 in fe09cab
biome/crates/biome_lsp/src/handlers/analysis.rs Lines 63 to 74 in fe09cab
{
"editor.codeActionsOnSave": {
"source.fixAll.biome": "explicit"
}
} I see that the code here has fix-all, and my vscode can also work properly, is I looking for the wrong location? |
Nice analysis! I believe it's an issue in our documentation then |
Note that biome must also report that code action through |
I think it's set to true, but I'm not sure if true will meet your needs |
I'm talking about codeActionProvider.codeActionKinds capability which accepts an array of kinds. |
@suxin2017 this comment should answer your question -> |
The LSP spec author admitted in microsoft/language-server-protocol#1629 (comment) that if the code action is not registered in That said, it was also said that VSCode doesn't follow that now. I would say that specifying the code action should be ideal and most compatible with different LSP clients. |
Ok, I got it. Can you check this pr |
reopening this as part of #3897 |
Description
Hello,
Currently biome exposes a
"quickfix.biome"
code action on save. (see the docs)The proposal is to rename
quickfix.biome
tosource.fixAll.biome
because it adheres to the LSP spec more:microsoft/language-server-protocol#1629 (comment)
Related issues:
sublimelsp/LSP#2495
The text was updated successfully, but these errors were encountered: