LanguageClient: auto setup yaml and json ls

Change-Id: I8fff750594cfbd25a0401cd24068c89b86dcf5fc
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
David Schulz
2023-08-18 15:14:45 +02:00
parent 10d389f59f
commit b825d97e1e
3 changed files with 195 additions and 0 deletions

View File

@@ -530,6 +530,8 @@ void LanguageClientManager::editorOpened(Core::IEditor *editor)
if (TextEditor::TextDocument *document = textEditor->textDocument()) {
if (Client *client = m_clientForDocument[document])
client->activateEditor(editor);
else
autoSetupLanguageServer(document);
}
}
}