Skip to content
GitLab
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
b30e095f
Commit
b30e095f
authored
Sep 25, 2022
by
Christoph Cullmann
🍨
Browse files
use correct project info for the document we work on
BUG: 459579
parent
89111ee1
Pipeline
#236758
passed with stage
in 7 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientservermanager.cpp
View file @
b30e095f
...
...
@@ -11,6 +11,7 @@
#include
"lspclientservermanager.h"
#include
"hostprocess.h"
#include
"ktexteditor_utils.h"
#include
"lspclient_debug.h"
#include
<KLocalizedString>
...
...
@@ -559,11 +560,9 @@ private:
return
nullptr
;
}
// use mainwindow of specified view
QObject
*
projectView
=
projectPluginView
(
view
->
mainWindow
());
// preserve raw QString value so it can be used and tested that way below
const
auto
projectBase
=
projectView
?
projectView
->
property
(
"projectBaseDir"
).
toString
()
:
QString
();
const
auto
&
projectMap
=
projectView
?
projectView
->
property
(
"projectMap"
).
toMap
()
:
QVariantMap
();
// get project plugin infos if available
const
auto
projectBase
=
Utils
::
projectBaseDirForDocument
(
document
);
const
auto
projectMap
=
Utils
::
projectMapForDocument
(
document
);
// merge with project specific
auto
projectConfig
=
QJsonDocument
::
fromVariant
(
projectMap
).
object
().
value
(
QStringLiteral
(
"lspclient"
)).
toObject
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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