mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Move diagnostic tags api out of proposed
Also rename `customTags` to `tags` Fixes #51104
This commit is contained in:
@@ -111,7 +111,7 @@ export namespace Diagnostic {
|
||||
code: String(value.code),
|
||||
severity: DiagnosticSeverity.from(value.severity),
|
||||
relatedInformation: value.relatedInformation && value.relatedInformation.map(DiagnosticRelatedInformation.from),
|
||||
customTags: Array.isArray(value.customTags) ? value.customTags.map(DiagnosticTag.from) : undefined,
|
||||
tags: Array.isArray(value.tags) ? value.tags.map(DiagnosticTag.from) : undefined,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -750,7 +750,7 @@ export class Diagnostic {
|
||||
code: string | number;
|
||||
severity: DiagnosticSeverity;
|
||||
relatedInformation: DiagnosticRelatedInformation[];
|
||||
customTags?: DiagnosticTag[];
|
||||
tags?: DiagnosticTag[];
|
||||
|
||||
constructor(range: Range, message: string, severity: DiagnosticSeverity = DiagnosticSeverity.Error) {
|
||||
this.range = range;
|
||||
|
||||
Reference in New Issue
Block a user