forked from qt-creator/qt-creator
LanguageClient: remove refactoring markers when deactivating document
Fixes: QTCREATORBUG-28182 Change-Id: Iab52862ecc205c65d8fbdac34b5f9bc78766e33b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -879,6 +879,8 @@ void Client::deactivateDocument(TextEditor::TextDocument *document)
|
||||
TextEditor::TextEditorWidget *widget = textEditor->editorWidget();
|
||||
widget->removeHoverHandler(&d->m_hoverHandler);
|
||||
widget->setExtraSelections(TextEditor::TextEditorWidget::CodeSemanticsSelection, {});
|
||||
widget->setRefactorMarkers(
|
||||
TextEditor::RefactorMarker::filterOutType(widget->refactorMarkers(), id()));
|
||||
updateEditorToolBar(editor);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user