Skip to content

Commit 71f4b87

Browse files
debug
1 parent 1edbdda commit 71f4b87

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/cursorless-engine/src/generateSpokenForm/CustomSpokenFormGeneratorImpl.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ export class CustomSpokenFormGeneratorImpl
3737
);
3838
this.disposable = this.customSpokenForms.onDidChangeCustomSpokenForms(
3939
() => {
40+
console.log(
41+
"CustomSpokenFormGeneratorImpl.onDidChangeCustomSpokenForms",
42+
);
4043
this.spokenFormGenerator = new SpokenFormGenerator(
4144
this.customSpokenForms.spokenFormMap,
4245
);
4346
},
4447
);
48+
console.log("CustomSpokenFormGeneratorImpl constructor done");
4549
}
4650

4751
onDidChangeCustomSpokenForms(listener: Listener<[]>) {

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,22 @@ export class CustomSpokenForms {
5858
}
5959

6060
constructor(private talonSpokenForms: TalonSpokenForms) {
61+
console.log("CustomSpokenForms constructor");
62+
6163
this.disposable = talonSpokenForms.onDidChange(() => {
6264
console.log("CustomSpokenForms.onDidChange");
6365
this.updateSpokenFormMaps().catch(() => {
6466
console.log("CustomSpokenForms.onDidChange() catch");
6567
});
6668
});
6769

68-
console.log("CustomSpokenForms constructor");
69-
7070
this.customSpokenFormsInitialized = this.updateSpokenFormMaps().catch(
7171
() => {
7272
console.log("CustomSpokenForms.updateSpokenFormMaps() catch");
7373
},
7474
);
75+
76+
console.log("CustomSpokenForms constructor done");
7577
}
7678

7779
/**

0 commit comments

Comments
 (0)