We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3add2 commit d6e8dddCopy full SHA for d6e8ddd
src/services/formatting/formatting.ts
@@ -751,7 +751,7 @@ namespace ts.formatting {
751
let startLine = parentStartLine;
752
let indentationOnListStartToken = parentDynamicIndentation.getIndentation();
753
754
- if (listStartToken !== SyntaxKind.Unknown) {
+ if (listStartToken !== SyntaxKind.Unknown && nodes.end !== undefined /* TODO: nodes.end must not be `undefined` */) {
755
// introduce a new indentation scope for lists (including list start and end tokens)
756
while (formattingScanner.isOnToken()) {
757
const tokenInfo = formattingScanner.readTokenInfo(parent);
0 commit comments