cursorless-dev / cursorless

Don't let the cursor slow you down
https://www.cursorless.org/
MIT License
1.13k stars 79 forks source link

Make capabilities check be enforced by type system #1233

Open pokey opened 1 year ago

pokey commented 1 year ago

So eg setHighlights could be null or something, and so that way you have to check. Maybe have type descriminator field and in one version its null and in another it's not. It's possible that we would just want to add a commands field to editor that contains all these to make it easier to make typing work

pokey commented 2 months ago

see also https://github.com/cursorless-dev/cursorless/issues/1160