Skip to content
GitLab
Menu
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
4c27ebe6
Commit
4c27ebe6
authored
Apr 06, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Apr 06, 2021
Browse files
Downgrade lsp semantic highlighting warnings
parent
b298f1cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
4c27ebe6
...
...
@@ -2066,7 +2066,7 @@ public:
}
}
if
(
version
!=
miface
->
revision
())
{
qC
Warnin
g
(
LSPCLIENT
)
<<
"discarding highlighting, versions don't match:"
<<
params
.
textDocument
.
version
<<
version
<<
miface
->
revision
();
qC
Debu
g
(
LSPCLIENT
)
<<
"discarding highlighting, versions don't match:"
<<
params
.
textDocument
.
version
<<
version
<<
miface
->
revision
();
return
;
}
...
...
addons/lspclient/lspclientserver.cpp
View file @
4c27ebe6
...
...
@@ -749,7 +749,7 @@ static LSPSemanticHighlightingParams parseSemanticHighlighting(const QJsonObject
// the raw tokens are in big endian, we may need to convert that to little endian
const
auto
rawTokens
=
QByteArray
::
fromBase64
(
tokenString
.
toString
().
toUtf8
());
if
(
rawTokens
.
size
()
%
TokenSize
!=
0
)
{
qC
Warnin
g
(
LSPCLIENT
)
<<
"unexpected raw token size"
<<
rawTokens
.
size
()
<<
"for string"
<<
tokenString
<<
"in line"
<<
info
.
line
;
qC
Debu
g
(
LSPCLIENT
)
<<
"unexpected raw token size"
<<
rawTokens
.
size
()
<<
"for string"
<<
tokenString
<<
"in line"
<<
info
.
line
;
continue
;
}
const
auto
numTokens
=
rawTokens
.
size
()
/
TokenSize
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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