From f946cc79a2fa88263ced697d42614d895a6ebe5e Mon Sep 17 00:00:00 2001 From: Maria Solano Date: Wed, 17 Jan 2024 09:51:29 -0800 Subject: [PATCH] Allow undefined snippet edit annotation ID --- types/src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/src/main.ts b/types/src/main.ts index 781035901..940d9695c 100644 --- a/types/src/main.ts +++ b/types/src/main.ts @@ -1508,7 +1508,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))); } }