Skip to content

Commit c5ca751

Browse files
Debug print
1 parent ab73fed commit c5ca751

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/cursorless-engine/src/disabledComponents/DisabledTalonSpokenForms.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66

77
export class DisabledTalonSpokenForms implements TalonSpokenForms {
88
getSpokenFormEntries(): Promise<SpokenFormEntry[]> {
9+
console.log("getSpokenFormEntries() throw DisabledCustomSpokenFormsError");
910
throw new DisabledCustomSpokenFormsError();
1011
}
1112

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ export class CustomSpokenForms {
5858
}
5959

6060
constructor(private talonSpokenForms: TalonSpokenForms) {
61-
this.disposable = talonSpokenForms.onDidChange(() =>
62-
this.updateSpokenFormMaps().catch(() => {}),
63-
);
61+
this.disposable = talonSpokenForms.onDidChange(() => {
62+
console.log("CustomSpokenForms.onDidChange");
63+
this.updateSpokenFormMaps().catch(() => {});
64+
});
6465

6566
this.customSpokenFormsInitialized = this.updateSpokenFormMaps();
6667
this.customSpokenFormsInitialized.catch(() => {});
@@ -74,6 +75,7 @@ export class CustomSpokenForms {
7475
onDidChangeCustomSpokenForms = this.notifier.registerListener;
7576

7677
private async updateSpokenFormMaps(): Promise<void> {
78+
console.log("updateSpokenFormMaps()");
7779
let allCustomEntries: SpokenFormEntry[];
7880
try {
7981
allCustomEntries = await this.talonSpokenForms.getSpokenFormEntries();

0 commit comments

Comments
 (0)