include linkcheckmd as source in any Diagnostic
Fixes #60 Previously a user had no idea that the diagnostics reported by this extension in the Problems tab (or in a hover state) where from linkcheckmd. This resolves that issue.
This commit is contained in:
Родитель
9b1ebb3414
Коммит
9cce3fd84a
|
@ -241,6 +241,7 @@ function createDiagnostic(severity: DiagnosticSeverity, markdownLink, lineText:
|
||||||
// Create the diagnostic object
|
// Create the diagnostic object
|
||||||
let diag = new Diagnostic(range, message, severity);
|
let diag = new Diagnostic(range, message, severity);
|
||||||
diag.code = code;
|
diag.code = code;
|
||||||
|
diag.source = "linkcheckmd";
|
||||||
// Return the diagnostic
|
// Return the diagnostic
|
||||||
return diag;
|
return diag;
|
||||||
}
|
}
|
Загрузка…
Ссылка в новой задаче