Skip to content

Commit 82e0918

Browse files
committed
wip: Add continue statement to resolve flashes out of bounds error
1 parent fbded1f commit 82e0918

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/test-case-component/src/helpers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ function getIdeFlashDecorations({
170170
* multiple classes to the same span causing CSS conflicts
171171
*/
172172
for (let line = lineStart; line <= lineEnd; line++) {
173+
if (line >= lines.length) {
174+
continue
175+
}
173176
const contentLine = lines[line];
174177
const startPosition = { line, character: 0 };
175178
const endPosition = { line, character: contentLine.length };

0 commit comments

Comments
 (0)