Skip to content

Commit 6cc736d

Browse files
authored
fix uncaught exceptions from CustomSpokenForms.updateSpokenFormMaps (#2261) (#2283)
fixes #2261 ## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [-] 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) - [-] I have not broken the cheatsheet
1 parent aebc88d commit 6cc736d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cursorless-engine/src/spokenForms/CustomSpokenForms.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ export class CustomSpokenForms {
5757

5858
constructor(private talonSpokenForms: TalonSpokenForms) {
5959
this.disposable = talonSpokenForms.onDidChange(() =>
60-
this.updateSpokenFormMaps(),
60+
this.updateSpokenFormMaps().catch(() => {}),
6161
);
6262

6363
this.customSpokenFormsInitialized = this.updateSpokenFormMaps();
64+
this.customSpokenFormsInitialized.catch(() => {});
6465
}
6566

6667
/**

0 commit comments

Comments
 (0)