Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
10cdb127
Commit
10cdb127
authored
Aug 16, 2022
by
Glebs Ivanovskis
Committed by
Christoph Cullmann
Aug 21, 2022
Browse files
Show diagnostic code in UI
parent
0b16bebe
Pipeline
#220916
passed with stage
in 6 minutes and 13 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
10cdb127
...
...
@@ -2538,6 +2538,9 @@ public:
if
(
diag
.
source
.
length
())
{
source
=
QStringLiteral
(
"[%1] "
).
arg
(
diag
.
source
);
}
if
(
diag
.
code
.
length
())
{
source
+=
QStringLiteral
(
"(%1) "
).
arg
(
diag
.
code
);
}
item
->
setData
(
diagnosticsIcon
(
diag
.
severity
),
Qt
::
DecorationRole
);
// rendering of lines with embedded newlines does not work so well
// so ... split message by lines
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment