next/previous commenting range command doesn't work (#193958)

Fixes #193728
This commit is contained in:
Alex Ross
2023-09-25 11:52:47 +02:00
committed by GitHub
parent 9987f6f321
commit 377fae6a7f

View File

@@ -344,7 +344,7 @@ class CommentingRangeDecorator {
return range; return range;
} }
return decorations[0].getActiveRange() ?? undefined; return (decorations.length > 0 ? (decorations[0].getActiveRange() ?? undefined) : undefined);
} }
public dispose(): void { public dispose(): void {