From c0982bf544bab9600df223146dd75c93c9004dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Thu, 18 Jan 2024 02:03:32 -0800 Subject: [PATCH] Allow undefined snippet edit annotation ID (#1408) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dirk Bäumer --- 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 f8d928f1..9b7140d9 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))); } }