Coco: long live the cocoplugin

Change-Id: I1d21c67233d302a0689c4689bf9c2f349387ba1c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2022-04-01 07:35:08 +02:00
parent 56b5e1f4de
commit b50eb35a17
13 changed files with 570 additions and 2 deletions

View File

@@ -110,8 +110,12 @@ void DiagnosticManager::showDiagnostics(const DocumentUri &uri, int version)
const bool isProjectFile = m_client->project()
&& m_client->project()->isKnownFile(filePath);
for (const Diagnostic &diagnostic : versionedDiagnostics.diagnostics) {
extraSelections << createDiagnosticSelection(diagnostic, doc->document());
marks.append(createTextMark(filePath, diagnostic, isProjectFile));
const QTextEdit::ExtraSelection selection
= createDiagnosticSelection(diagnostic, doc->document());
if (!selection.cursor.isNull())
extraSelections << selection;
if (TextEditor::TextMark *mark = createTextMark(filePath, diagnostic, isProjectFile))
marks.append(mark);
}
if (!marks.isEmpty())
emit textMarkCreated(filePath);