File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/cursorless-engine/src Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 66
77export class DisabledTalonSpokenForms implements TalonSpokenForms {
88 getSpokenFormEntries ( ) : Promise < SpokenFormEntry [ ] > {
9+ console . log ( "getSpokenFormEntries() throw DisabledCustomSpokenFormsError" ) ;
910 throw new DisabledCustomSpokenFormsError ( ) ;
1011 }
1112
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments