Closed jaresty closed 1 month ago
Seems to be happening because of a bad interaction between cursorless and the extension 'gruntfuggly.todo-tree'. When I uninstalled the extension the exception went away. I haven't opened an issue with them yet.
This appears to be because we are using the regex flag d
that was introduced in ECMAScript 2022.
https://github.com/cursorless-dev/cursorless/blob/4387672bf4d4f4db239e5d1901e56ad2c0e00d96/packages/cursorless-engine/src/languages/TreeSitterQuery/queryPredicateOperators.ts#L139
I don't know why gruntfuggly.todo-tree
is affected by this, but this line at Array.get [as indices] (/Users/tkma6d4/.vscode/extensions/gruntfuggly.todo-tree-0.0.226/dist/extension.js:52:2895)
might indicate that they are actually modifying something on the regex prototype.
Edit: I should have looked for issues first :D
gruntfuggly.todo-tree
is globally replacing the regex implementation. I would definitely not recommend this extension.
https://github.com/Gruntfuggly/todo-tree/issues/853
Also there's nothing we from the Cursorless side can do about this. I would just recommend closing this issue and following the development on the gruntfuggly.todo-tree
repository.
I got an exception when I tried to run change pair in a markdown file today. My cursor was in the middle of some backticks. I saw this in the logs: