LanguageClient: only send contents of TextDocuments to the server

Change-Id: Ifdcd6ba161336814744c51f15e35a756960cb199
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2019-09-11 11:15:39 +02:00
parent 74688679b2
commit d3c94edd93
6 changed files with 79 additions and 75 deletions

View File

@@ -201,8 +201,8 @@ void updateEditorToolBar(Core::IEditor *editor)
if (!widget)
return;
Core::IDocument *document = editor->document();
Client *client = LanguageClientManager::clientForDocument(document);
TextDocument *document = textEditor->textDocument();
Client *client = LanguageClientManager::clientForDocument(textEditor->textDocument());
static QMap<QWidget *, QAction *> actions;