forked from qt-creator/qt-creator
qmllsclient: fix initialization options
When qmlls is started from the shared interface LanguageClientManager,
initializationOptions are passed from the settings.
Amends a737828d7d
Change-Id: I9a92b185e9ebc1f5726a8c9f69a2cb2a55658a70
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
This commit is contained in:
@@ -141,10 +141,6 @@ QmllsClient::QmllsClient(StdIOClientInterface *interface)
|
||||
&ProjectExplorer::BuildManager::buildQueueFinished,
|
||||
this,
|
||||
[this]() { LanguageClientManager::restartClient(this); });
|
||||
QJsonObject initializationOptions {
|
||||
{"qtCreatorHighlighting", true}
|
||||
};
|
||||
setInitializationOptions(initializationOptions);
|
||||
semanticTokenSupport()->setTokenTypesMap(QmllsClient::semanticTokenTypesMap());
|
||||
semanticTokenSupport()->setTextStyleForTokenType(
|
||||
[](int tokenType) -> std::optional<TextEditor::TextStyle> {
|
||||
|
@@ -64,6 +64,7 @@ QmllsClientSettings::QmllsClientSettings()
|
||||
|
||||
m_settingsTypeId = Constants::QMLLS_CLIENT_SETTINGS_ID;
|
||||
m_startBehavior = RequiresProject;
|
||||
m_initializationOptions = "{\"qtCreatorHighlighting\": true}";
|
||||
}
|
||||
|
||||
static QtVersion *qtVersionFromProject(const Project *project)
|
||||
|
Reference in New Issue
Block a user