diff --git a/types/src/main.ts b/types/src/main.ts index f8d928f14..9b7140d9f 100644 --- a/types/src/main.ts +++ b/types/src/main.ts @@ -1521,7 +1521,8 @@ export namespace SnippetTextEdit { return Is.objectLiteral(candidate) && Range.is(candidate.range) && StringValue.isSnippet(candidate.snippet) - && (ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId)); + && (candidate.annotationId === undefined || + (ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId))); } }