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
ebef2eb5
Commit
ebef2eb5
authored
May 02, 2021
by
Mark Nauwelaerts
Browse files
lspclient: only check server basename when checking for clangd
parent
f4a75d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
ebef2eb5
...
...
@@ -2282,8 +2282,9 @@ public:
connect
(
doc
,
&
KTextEditor
::
Document
::
textChanged
,
this
,
&
self_type
::
onTextChanged
,
Qt
::
UniqueConnection
);
connect
(
doc
,
&
KTextEditor
::
Document
::
documentUrlChanged
,
this
,
&
self_type
::
onDocumentUrlChanged
,
Qt
::
UniqueConnection
);
}
isClangd
=
server
->
cmdline
().
front
()
==
QStringLiteral
(
"clangd"
);
// only consider basename (full path may have been custom specified)
auto
lspServer
=
QFileInfo
(
server
->
cmdline
().
front
()).
fileName
();
isClangd
=
lspServer
==
QStringLiteral
(
"clangd"
);
}
if
(
m_findDef
)
{
...
...
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