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
9e865ffd
Commit
9e865ffd
authored
Oct 05, 2022
by
Christoph Cullmann
🍨
Browse files
avoid clash with C++ keywords: compl
parent
0a48c27e
Pipeline
#242375
passed with stage
in 12 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientcompletion.cpp
View file @
9e865ffd
...
...
@@ -323,9 +323,9 @@ public:
// maybe use WaitForReset ??
// but more complex and already looks good anyway
auto
handler
=
[
this
](
const
QList
<
LSPCompletionItem
>
&
compl
)
{
auto
handler
=
[
this
](
const
QList
<
LSPCompletionItem
>
&
compl
etion
)
{
beginResetModel
();
qCInfo
(
LSPCLIENT
)
<<
"adding completions "
<<
compl
.
size
();
qCInfo
(
LSPCLIENT
)
<<
"adding completions "
<<
compl
etion
.
size
();
// purge all existing completion items
m_matches
.
erase
(
std
::
remove_if
(
m_matches
.
begin
(),
m_matches
.
end
(),
...
...
@@ -333,7 +333,7 @@ public:
return
ci
.
argumentHintDepth
==
0
;
}),
m_matches
.
end
());
for
(
const
auto
&
item
:
compl
)
{
for
(
const
auto
&
item
:
compl
etion
)
{
m_matches
.
push_back
(
item
);
}
std
::
stable_sort
(
m_matches
.
begin
(),
m_matches
.
end
(),
compare_match
);
...
...
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