| 126 | } |
| 127 | |
| 128 | void StaticAssistantsManagerPrivate::textRemoved(Document* doc, const Range& range, |
| 129 | const QString& removedText) |
| 130 | { |
| 131 | auto changed = false; |
| 132 | for (auto& assistant : std::as_const(m_registeredAssistants)) { |
| 133 | auto wasUseful = assistant->isUseful(); |
| 134 | assistant->textChanged(doc, range, removedText); |
| 135 | if (wasUseful != assistant->isUseful()) { |
| 136 | changed = true; |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | if (changed) { |
| 141 | Q_EMIT q->problemsChanged(IndexedString(doc->url())); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | void StaticAssistantsManager::notifyAssistants(const IndexedString& url, |
| 146 | const KDevelop::ReferencedTopDUContext& context) |
nothing calls this directly
no test coverage detected