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
9814f245
Commit
9814f245
authored
Feb 23, 2021
by
Waqar Ahmed
Browse files
Don't open header/source if reply from clangd is empty
parent
76ae7772
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
9814f245
...
...
@@ -1780,7 +1780,11 @@ public:
}
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
);
}
...
...
Write
Preview
Supports
Markdown
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