Commit ebef2eb5 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: only check server basename when checking for clangd

parent f4a75d28
......@@ -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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment