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
800c466e
Commit
800c466e
authored
Feb 12, 2022
by
Mark Nauwelaerts
Committed by
Christoph Cullmann
Feb 13, 2022
Browse files
lspclient: use common helper to apply additional completion edits
parent
a40d83eb
Pipeline
#136851
passed with stage
in 3 minutes and 36 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientcompletion.cpp
View file @
800c466e
...
...
@@ -6,6 +6,7 @@
#include
"lspclientcompletion.h"
#include
"lspclientplugin.h"
#include
"lspclientutils.h"
#include
"lspclient_debug.h"
...
...
@@ -435,9 +436,9 @@ public:
}
if
(
m_autoImport
)
{
for
(
const
auto
&
textEdit
:
additionalTextE
dits
)
{
view
->
document
()
->
insertText
(
textEdit
.
range
.
start
(),
textEdit
.
newText
);
}
// re-use util to apply e
dits
// (which takes care to use moving range, etc)
applyEdits
(
view
->
document
(),
nullptr
,
additionalTextEdits
);
}
}
...
...
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