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
43d53009
Commit
43d53009
authored
Apr 25, 2021
by
Mark Nauwelaerts
Browse files
lspclient: simplify findImplementation
parent
a80edb2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
43d53009
...
...
@@ -1562,12 +1562,7 @@ public:
void
findImplementation
()
{
auto
title
=
i18nc
(
"@title:tab"
,
"Implementation: %1"
,
currentWord
());
// clang-format off
auto
req
=
[](
LSPClientServer
&
server
,
const
QUrl
&
document
,
const
LSPPosition
&
pos
,
const
QObject
*
context
,
const
DocumentDefinitionReplyHandler
&
h
)
{
return
server
.
documentImplementation
(
document
,
pos
,
context
,
h
);
};
// clang-format on
processLocations
<
LSPLocation
>
(
title
,
req
,
true
,
&
self_type
::
locationToRangeItem
);
processLocations
<
LSPLocation
>
(
title
,
&
LSPClientServer
::
documentImplementation
,
true
,
&
self_type
::
locationToRangeItem
);
}
void
highlight
()
...
...
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