LanguageClient: update outline after document changes

Change-Id: I45b9107ccf812582a6138b469ded57e978bce267
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2019-05-13 15:20:24 +02:00
parent 166cb39709
commit d2030346f2

View File

@@ -140,6 +140,11 @@ LanguageClientOutlineWidget::LanguageClientOutlineWidget(Client *client,
&DocumentSymbolCache::gotSymbols, &DocumentSymbolCache::gotSymbols,
this, this,
&LanguageClientOutlineWidget::handleResponse); &LanguageClientOutlineWidget::handleResponse);
connect(editor->textDocument(), &TextEditor::TextDocument::contentsChanged, this, [this]() {
if (m_client)
m_client->documentSymbolCache()->requestSymbols(m_uri);
});
client->documentSymbolCache()->requestSymbols(m_uri); client->documentSymbolCache()->requestSymbols(m_uri);
auto *layout = new QVBoxLayout; auto *layout = new QVBoxLayout;