Skip to content

Commit

Permalink
Add timeoutMicros to TS queries
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Oct 19, 2024
1 parent a767ac3 commit dcef7f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TreeSitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export function queryNode(node: Parser.SyntaxNode, queryString: string, startPoi
// startIndex: 0,
// endIndex: 10000000,
matchLimit: 10000,
timeoutMicros: 1000 * 1000 * 10, // 10 seconds
};

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

0 comments on commit dcef7f4

Please sign in to comment.