Skip to content

Commit

Permalink
Merge branch 'master' into joh/celldocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored Aug 12, 2020
2 parents a50209c + c67a82d commit 7813e46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vs/workbench/api/common/extHostTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7813e46

Please sign in to comment.