forked from qt-creator/qt-creator
LanguageClient: update outline after document changes
Change-Id: I45b9107ccf812582a6138b469ded57e978bce267 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -140,6 +140,11 @@ LanguageClientOutlineWidget::LanguageClientOutlineWidget(Client *client,
|
||||
&DocumentSymbolCache::gotSymbols,
|
||||
this,
|
||||
&LanguageClientOutlineWidget::handleResponse);
|
||||
connect(editor->textDocument(), &TextEditor::TextDocument::contentsChanged, this, [this]() {
|
||||
if (m_client)
|
||||
m_client->documentSymbolCache()->requestSymbols(m_uri);
|
||||
});
|
||||
|
||||
client->documentSymbolCache()->requestSymbols(m_uri);
|
||||
|
||||
auto *layout = new QVBoxLayout;
|
||||
|
||||
Reference in New Issue
Block a user