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

            Bug ID: 467322
           Summary: LSP: show regular tooltip alongside error/warning
    Classification: Applications
           Product: kate
           Version: 22.12.3
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: groszdaniel...@gmail.com
  Target Milestone: ---

Created attachment 157264
  --> https://bugs.kde.org/attachment.cgi?id=157264&action=edit
Tooltip with warning only

The LSP plugin can show tooltips hovering over identifiers, such as the type of
a variable. Also, when hovering over code with an error or warning, it shows
the message in a different kind of tooltip. However, the tooltip containing the
error message *replaces* the regular tooltip; if a variable is in a part of the
code that results in a warning, one can't see the tooltip containing the type
of the variable, even when it would still be meaningful, and it's still
provided by the language server.

A common occurrence where this is a problem is when I define a new variable
with an automatically deduced type (in Typescript, but it could also be C++),
and I'd like to see the deduced type, the language server immediately warns me
that it's unused, and so I can't view the deduced type until I use the
variable.

I suggest showing a tooltip that contains both the regular tooltip (e.g. the
type of a variable) and the error message when possible.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230312
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.1-1-default (64-bit)
Graphics Platform: X11

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

Reply via email to