We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a9f32 commit 69f56bbCopy full SHA for 69f56bb
packages/cursorless-engine/src/spokenForms/CustomSpokenForms.ts
@@ -79,6 +79,9 @@ export class CustomSpokenForms {
79
let allCustomEntries: SpokenFormEntry[];
80
try {
81
allCustomEntries = await this.talonSpokenForms.getSpokenFormEntries();
82
+ if (allCustomEntries.length === 0) {
83
+ throw new Error("Custom spoken forms list empty");
84
+ }
85
} catch (err) {
86
if (err instanceof NeedsInitialTalonUpdateError) {
87
// Handle case where spokenForms.json doesn't exist yet
0 commit comments