Skip to content

Commit bacffbc

Browse files
fix: fix issue with ensureSyntaxTree timing out
1 parent e190c31 commit bacffbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/ee/features/codeNav/components/symbolHoverPopup/symbolHoverTargetsExtension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const symbolHoverTargetsExtension = StateField.define<DecorationSet>({
5252
// @note: we need to use `ensureSyntaxTree` here (as opposed to `syntaxTree`)
5353
// because we want to parse the entire document, not just the text visible in
5454
// the current viewport.
55-
const { data: tree } = measureSync(() => ensureSyntaxTree(state, state.doc.length), "ensureSyntaxTree");
55+
const { data: tree } = measureSync(() => ensureSyntaxTree(state, state.doc.length, Infinity), "ensureSyntaxTree");
5656
const decorations: Range<Decoration>[] = [];
5757

5858
// @note: useful for debugging

0 commit comments

Comments
 (0)