Skip to content

Commit d28d0d1

Browse files
committed
workaround for codefix test failure
See microsoft#13574 (comment)
1 parent ada25a7 commit d28d0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/formatting/formatting.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ namespace ts.formatting {
716716
let startLine = parentStartLine;
717717
let indentationOnListStartToken = parentDynamicIndentation.getIndentation();
718718

719-
if (listStartToken !== SyntaxKind.Unknown) {
719+
if (listStartToken !== SyntaxKind.Unknown && nodes.end !== undefined /* TODO: nodes.end must not be `undefined` */) {
720720
// introduce a new indentation scope for lists (including list start and end tokens)
721721
while (formattingScanner.isOnToken()) {
722722
const tokenInfo = formattingScanner.readTokenInfo(parent);

0 commit comments

Comments
 (0)