forked from qt-creator/qt-creator
Clangd: fix opening document with client for project
Using LanguageClientManager::openDocumentWithClient function to assign a document to a specific server. This function also takes care of deactivating the document for the old client and opens it if necessary in the new client. Fixes: QTCREATORBUG-26205 Change-Id: Idbff154a62d12c432a2cb10d547f78a537e63a3c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1091,12 +1091,6 @@ void ClangdClient::enableTesting()
|
||||
});
|
||||
}
|
||||
|
||||
void ClangdClient::openEditorDocument(TextEditor::BaseTextEditor *editor)
|
||||
{
|
||||
if (!documentOpen(editor->textDocument()))
|
||||
openDocument(editor->textDocument());
|
||||
}
|
||||
|
||||
void ClangdClient::Private::handleFindUsagesResult(quint64 key, const QList<Location> &locations)
|
||||
{
|
||||
const auto refData = runningFindUsages.find(key);
|
||||
|
||||
Reference in New Issue
Block a user