Commit 536e7fb8 authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Apply font settings for diagnostics immediately

...and not on document reload.

Change-Id: Idb6a9ba640a573c153aeab304dd280b6f6cf8ea0
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 6e5f9091
...@@ -190,6 +190,11 @@ void BuiltinEditorDocumentProcessor::recalculateSemanticInfoDetached(bool force) ...@@ -190,6 +190,11 @@ void BuiltinEditorDocumentProcessor::recalculateSemanticInfoDetached(bool force)
void BuiltinEditorDocumentProcessor::semanticRehighlight() void BuiltinEditorDocumentProcessor::semanticRehighlight()
{ {
if (m_semanticHighlighter && m_semanticInfoUpdater.semanticInfo().doc) { 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->updateFormatMapFromFontSettings();
m_semanticHighlighter->run(); m_semanticHighlighter->run();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment