Support for TypeScript 4.4

This commit is contained in:
Orta 2021-06-03 13:37:09 +01:00
parent 64504b9ffb
commit 9524853450

View file

@ -333,9 +333,9 @@ export class DiagnosticsAdapter extends Adapter {
private _convertRelatedInformation( private _convertRelatedInformation(
model: editor.ITextModel, model: editor.ITextModel,
relatedInformation?: DiagnosticRelatedInformation[] relatedInformation?: DiagnosticRelatedInformation[]
): editor.IRelatedInformation[] | undefined { ): editor.IRelatedInformation[] {
if (!relatedInformation) { if (!relatedInformation) {
return; return [];
} }
const result: editor.IRelatedInformation[] = []; const result: editor.IRelatedInformation[] = [];