Skip to content

Commit

Permalink
Allow undefined snippet edit annotation ID (#1408)
Browse files Browse the repository at this point in the history
Co-authored-by: Dirk Bäumer <dirkb@microsoft.com>
  • Loading branch information
MariaSolOs and dbaeumer authored Jan 18, 2024
1 parent 3c025a1 commit c0982bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
}

Expand Down

0 comments on commit c0982bf

Please sign in to comment.