From 3fbb5ddba873e65855e8cf4d9b404170746fc511 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 16 Jul 2019 12:29:20 +0200 Subject: LanguageClient: Show outline after server start If the server was started by opening a document the outline factory and client was not properly initialized in the time the outline was requested. Update the outline after the client is fully initialized. Fixes: QTCREATORBUG-22695 Change-Id: I84dc56eead9774d80ed6baf7792daff930a7cb8e Reviewed-by: Eike Ziller --- src/plugins/texteditor/ioutlinewidget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/texteditor/ioutlinewidget.h') diff --git a/src/plugins/texteditor/ioutlinewidget.h b/src/plugins/texteditor/ioutlinewidget.h index 875181d8f0..ff0efa37b5 100644 --- a/src/plugins/texteditor/ioutlinewidget.h +++ b/src/plugins/texteditor/ioutlinewidget.h @@ -56,6 +56,8 @@ public: virtual bool supportsEditor(Core::IEditor *editor) const = 0; virtual IOutlineWidget *createWidget(Core::IEditor *editor) = 0; + + static void updateOutline(); }; } // namespace TextEditor -- cgit v1.2.3