feat: add fixed position support for floating windows #5217
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new feature to support fixed positioning for floating windows.
Sometimes while coding, I find the diagnostic floating windows can be distracting as they often overlap with the code I'm trying to read. Many diagnostics are temporary and appear during the coding process, and I don't always need to see these less important diagnostic messages. However, they still pop up large floating windows that disrupt my focus.
I took inspiration from Helix editor's diagnostic design, which displays the current cursor's diagnostic message in a fixed position at the top-right corner of the editor. I find this design very effective as it keeps the main editing area clean and uncluttered.
This implementation allows for a more focused coding experience.