forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user