forked from qt-creator/qt-creator
CppTools: Apply font settings for diagnostics immediately
...and not on document reload. Change-Id: Idb6a9ba640a573c153aeab304dd280b6f6cf8ea0 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -190,6 +190,11 @@ void BuiltinEditorDocumentProcessor::recalculateSemanticInfoDetached(bool force)
|
||||
void BuiltinEditorDocumentProcessor::semanticRehighlight()
|
||||
{
|
||||
if (m_semanticHighlighter && m_semanticInfoUpdater.semanticInfo().doc) {
|
||||
if (const CPlusPlus::Document::Ptr document = m_documentSnapshot.document(filePath())) {
|
||||
m_codeWarnings = toTextEditorSelections(document->diagnosticMessages(), textDocument());
|
||||
m_codeWarningsUpdated = false;
|
||||
}
|
||||
|
||||
m_semanticHighlighter->updateFormatMapFromFontSettings();
|
||||
m_semanticHighlighter->run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user