Commit 9814f245 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Don't open header/source if reply from clangd is empty

parent 76ae7772
...@@ -1780,7 +1780,11 @@ public: ...@@ -1780,7 +1780,11 @@ public:
} }
auto h = [this](const QString &reply) { auto h = [this](const QString &reply) {
m_mainWindow->openUrl(QUrl(reply)); if (!reply.isEmpty()) {
m_mainWindow->openUrl(QUrl(reply));
} else {
showMessage(i18n("Corresponding Header/Source not found"), KTextEditor::Message::Information);
}
}; };
server->clangdSwitchSourceHeader(document->url(), this, h); server->clangdSwitchSourceHeader(document->url(), this, h);
} }
......
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