Replies: 4 comments 1 reply
-
Mmmmh, are you sure that's what you want? Apart from the feature parity, that diagnostic isn't that great because the text is cut. We usually tend to use LSP diagnostics for messages that are more actionable. Do you have any other suggestions to make the diagnostic better? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I was also looking for this for the Jetbrains IDEs as I prefer to disable any automatic formatting and see the issues flagged in the editor instead. The visual flagging of code that needs a reformat lets me know that there are issues and I remain in control to decide when to reformat the whole file, or only part of the code, using the Ctrl-Alt-L shortcut. When you are used to this visual feedback, it is hard to consider migrating to biome, which doesn't provide it. Below is how I like to see those formatting issues in my editor. |
Beta Was this translation helpful? Give feedback.
-
Me and people at my company are also surprised to see that there is no visual information (highlight) about lines that need formatting. I am not used to switching between editor and terminal to check if code is formatted correctly. Maybe I need to learn it or enable formatting on file save but it's not obvious approach to me currently. Biome is awesome 🚀 and I hope we can start using it in all projects but such small things are sometimes big blockers 😭 |
Beta Was this translation helpful? Give feedback.
-
For feature parity with the Prettier vscode extension it would be nice if Biome could also highlight lines that need formatting:
Edit: Looking at the screenshot again it may actually be the ESLint extension that emits the diagnostics but my point still stands. 😅
Beta Was this translation helpful? Give feedback.
All reactions