LanguageClient: fix semantic highlight after a server reset

Change-Id: I3a389ec82032d21e2eb932ae8d0e8d5678575427
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2022-05-20 09:57:48 +02:00
parent 8174dabe57
commit 29f8db31ff
3 changed files with 9 additions and 1 deletions

View File

@@ -1683,6 +1683,7 @@ void Client::initializeCallback(const InitializeRequest::Response &initResponse)
updateConfiguration(configuration);
}
m_tokenSupport.clearTokens(); // clear cached tokens from a pre reset run
for (TextEditor::TextDocument *doc : m_postponedDocuments)
openDocument(doc);
m_postponedDocuments.clear();