https://bugs.kde.org/show_bug.cgi?id=492062

            Bug ID: 492062
           Summary: the LSP plugin doesn't set an appropriate size for the
                    language server popup box
    Classification: Applications
           Product: kate
           Version: 24.08.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: adam.m.fontenot+...@gmail.com
  Target Milestone: ---

Created attachment 172867
  --> https://bugs.kde.org/attachment.cgi?id=172867&action=edit
screenshot of the issue

SUMMARY

When I'm using the LSP plugin, the popup starts to appear and get sized right
before all of the text response for the language server has come in. This means
that the LSP plugin frequently makes the box slightly to small to avoid
scrolling (especially horizontal scrolling), which is extremely annoying.

The incorrect box size also seems to cause soft wrapping of language server
results that already *hard* wrapped - making them very difficult to read.

Another side effect of this is that if you hover over something, move the
cursor off, then move back a second later, you might get a box with a
*completely* different size, which is pretty jarring.


STEPS TO REPRODUCE
1. Hover over some common types like Strings with the rust-analyzer plugin
enabled.

OBSERVED RESULT

See summary and attached screenshot.


EXPECTED RESULT

The box should pick a size that is reasonable. 

Hard wrapped text should never be shown. If the text is soft wrapped, then you
never need to show a horizontal scrollbar in a small popup box, which is a
really good thing.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.5-arch1-1 (64-bit)
Graphics Platform: Wayland

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to