Merged
Conversation
2410b74 to
0c3eca4
Compare
9286669 to
dad00fb
Compare
0c3eca4 to
91b22f2
Compare
c4e7b75 to
6a6d06a
Compare
91b22f2 to
b45b136
Compare
88af8bf to
5aefc8b
Compare
b45b136 to
a39fb93
Compare
88d7ec1 to
84d2f1d
Compare
1522908 to
aaeb7a8
Compare
60a927f to
c07368a
Compare
74240bc to
129b71e
Compare
2e509b7 to
983ebe2
Compare
129b71e to
474772a
Compare
983ebe2 to
516045d
Compare
474772a to
0542218
Compare
3 tasks
516045d to
e71eb95
Compare
3b87860 to
3d8e394
Compare
e71eb95 to
3abd5af
Compare
2 tasks
3d8e394 to
97cc750
Compare
3abd5af to
896bbe4
Compare
97cc750 to
f3920b5
Compare
896bbe4 to
c9f226b
Compare
packages/cursorless-engine/src/generateSpokenForm/CustomSpokenFormGeneratorImpl.ts
Outdated
Show resolved
Hide resolved
pokey
commented
Oct 26, 2023
pokey
commented
Oct 26, 2023
pokey
commented
Oct 26, 2023
packages/cursorless-engine/src/scopeProviders/SpokenFormEntry.ts
Outdated
Show resolved
Hide resolved
auscompgeek
reviewed
Oct 26, 2023
Comment on lines
+56
to
+57
| } catch (err) { | ||
| if ((err as any)?.code === "ENOENT") { |
Member
There was a problem hiding this comment.
You could type annotate the catch instead:
Suggested change
| } catch (err) { | |
| if ((err as any)?.code === "ENOENT") { | |
| } catch (err: any) { | |
| if (err?.code === "ENOENT") { |
but the idiomatic thing would be to do an instanceof check
Member
Author
There was a problem hiding this comment.
c1bd390 contains an alternative approach, courtesy of chatgpt. wdyt?
pokey
commented
Oct 26, 2023
packages/cursorless-engine/src/nodeCommon/TalonSpokenFormsJsonReader.ts
Outdated
Show resolved
Hide resolved
pokey
commented
Oct 26, 2023
packages/cursorless-engine/src/spokenForms/CustomSpokenForms.ts
Outdated
Show resolved
Hide resolved
pokey
commented
Oct 26, 2023
packages/cursorless-engine/src/spokenForms/CustomSpokenForms.ts
Outdated
Show resolved
Hide resolved
pokey
commented
Oct 26, 2023
packages/cursorless-engine/src/spokenForms/CustomSpokenForms.ts
Outdated
Show resolved
Hide resolved
pokey
commented
Oct 26, 2023
packages/cursorless-engine/src/nodeCommon/TalonSpokenFormsJsonReader.ts
Outdated
Show resolved
Hide resolved
Member
Author
|
ok @AndreasArvidsson all feedback addressed; this one is ready for review again. I managed to get down to 2 type assertions, and they're more reasonable ones. Factoring it out into a function and using a for loop did simplify things 👍 |
AndreasArvidsson
approved these changes
Oct 28, 2023
github-merge-queue bot
pushed a commit
that referenced
this pull request
Oct 30, 2023
- This PR is the Talon side of #1940 ## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) (will do in follow-up) - [-] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [x] I have not broken the cheatsheet - [x] have the json have its own version number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist