Bug 475215 - LSP: copying nested diagnosics
Summary: LSP: copying nested diagnosics
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-04 14:57 UTC by Grósz Dániel
Modified: 2023-10-15 17:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (61.72 KB, image/png)
2023-10-04 14:57 UTC, Grósz Dániel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grósz Dániel 2023-10-04 14:57:46 UTC
Created attachment 162087 [details]
Screenshot

SUMMARY
When there are diagnostic messages nested in another message (see screenshot; I don't know what they are called in LSP terminology) there is no option in the context menu to copy the nested diagnostic. Also, there is a Copy option in the context menu of the parent, but it only copies the parent, so there is no way to copy the child.

- There should be a Copy option in the context menu of the nested message.
- Perhaps the Copy option of the parent should copy the descendants as well, or there should be a separate option to copy it along with the descendants. This would make it easier when there are many nested messages.

STEPS TO REPRODUCE
1. Produce code that results in nested diagnostics.
2. Right-click the nested diagnostic.
3. Right-click the parent diagnostic, and click Copy.

OBSERVED RESULT
After 2: No Copy option.
After 3: only the parent is copied.

EXPECTED RESULT
After 2: There's a Copy option.
After 3: Perhaps the nested message(s) are copied as well, in separate lines.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231001
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-1-default (64-bit)
Graphics Platform: X11
Comment 1 Christoph Cullmann 2023-10-15 17:03:23 UTC
Git commit 90ee681d9b698d51a26c44df98710f4be6d9d5bf by Christoph Cullmann, on behalf of Gary Li.
Committed on 15/10/2023 at 19:01.
Pushed by cullmann into branch 'master'.

Allow Copy in diagnostic context menu for all item types

M  +6    -5    apps/lib/diagnostics/diagnosticview.cpp

https://invent.kde.org/utilities/kate/-/commit/90ee681d9b698d51a26c44df98710f4be6d9d5bf