MCPcopy Create free account
hub / github.com/KDE/kdevelop / updateReady

Method updateReady

plugins/contextbrowser/contextbrowser.cpp:917–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915}
916
917void ContextBrowserPlugin::updateReady(const IndexedString& file, const ReferencedTopDUContext& /*topContext*/)
918{
919 const auto url = file.toUrl();
920 for (QMap<View*, ViewHighlights>::iterator it = m_highlightedRanges.begin(); it != m_highlightedRanges.end();
921 ++it) {
922 if (it.key()->document()->url() == url) {
923 if (Algorithm::insert(m_updateViews, it.key()).inserted) {
924 qCDebug(PLUGIN_CONTEXTBROWSER) << "adding view for update";
925
926 // Don't change the highlighted declaration after finished parse-jobs
927 (*it).keep = true;
928 }
929 }
930 }
931
932 if (!m_updateViews.isEmpty())
933 m_updateTimer->start(highlightingTimeout);
934}
935
936void ContextBrowserPlugin::textDocumentCreated(KDevelop::IDocument* document)
937{

Callers

nothing calls this directly

Calls 9

insertFunction · 0.85
toUrlMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
urlMethod · 0.45
documentMethod · 0.45
keyMethod · 0.45
isEmptyMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected