forked from qt-creator/qt-creator
LanguageClient: correctly initialize editors of opened documents
Change-Id: I2dee2093c0bdb97a204e89bf0db526ae405b8e78 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -471,10 +471,9 @@ void LanguageClientManager::editorOpened(Core::IEditor *editor)
|
||||
if (client->reachable())
|
||||
client->cursorPositionChanged(widget);
|
||||
});
|
||||
updateEditorToolBar(editor);
|
||||
if (TextEditor::TextDocument *document = textEditor->textDocument()) {
|
||||
if (Client *client = m_clientForDocument[document])
|
||||
widget->addHoverHandler(client->hoverHandler());
|
||||
client->activateEditor(editor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user