Skip to content

Commit dcef7f4

Browse files
committed
Add timeoutMicros to TS queries
1 parent a767ac3 commit dcef7f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TreeSitter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export function queryNode(node: Parser.SyntaxNode, queryString: string, startPoi
106106
// startIndex: 0,
107107
// endIndex: 10000000,
108108
matchLimit: 10000,
109+
timeoutMicros: 1000 * 1000 * 10, // 10 seconds
109110
};
110111

111112
// const queryCaptures = query.captures(node, queryOptions);

0 commit comments

Comments
 (0)