forked from qt-creator/qt-creator
LanguageClient: auto setup yaml and json ls
Change-Id: I8fff750594cfbd25a0401cd24068c89b86dcf5fc Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user