mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Merge branch 'master' into joh/celldocs
This commit is contained in:
@@ -885,6 +885,12 @@ export class Diagnostic {
|
||||
tags?: DiagnosticTag[];
|
||||
|
||||
constructor(range: Range, message: string, severity: DiagnosticSeverity = DiagnosticSeverity.Error) {
|
||||
if (!Range.isRange(range)) {
|
||||
throw new TypeError('range must be set');
|
||||
}
|
||||
if (!message) {
|
||||
throw new TypeError('message must be set');
|
||||
}
|
||||
this.range = range;
|
||||
this.message = message;
|
||||
this.severity = severity;
|
||||
|
||||
Reference in New Issue
Block a user