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
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