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
42fbc463
Commit
42fbc463
authored
Jun 06, 2021
by
Mark Nauwelaerts
Browse files
lspclient: add url to error message in case of server start failure
parent
45d9849d
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientservermanager.cpp
View file @
42fbc463
...
...
@@ -597,6 +597,10 @@ private:
connect
(
server
.
data
(),
&
LSPClientServer
::
stateChanged
,
this
,
&
self_type
::
onStateChanged
,
Qt
::
UniqueConnection
);
if
(
!
server
->
start
())
{
showMessage
(
i18n
(
"Failed to start server: %1"
,
cmdline
.
join
(
QLatin1Char
(
' '
))),
KTextEditor
::
Message
::
Error
);
auto
url
=
serverConfig
.
value
(
QStringLiteral
(
"url"
)).
toString
();
if
(
!
url
.
isEmpty
())
{
showMessage
(
i18n
(
"See also %1 for installation or details"
,
url
),
KTextEditor
::
Message
::
Error
);
}
}
else
{
showMessage
(
i18n
(
"Started server %2: %1"
,
cmdline
.
join
(
QLatin1Char
(
' '
)),
serverDescription
(
server
.
data
())),
KTextEditor
::
Message
::
Positive
);
...
...
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