File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class FakeCommandServerApi implements CommandServerApi {
1313 this . focusedElementType = "textEditor" ;
1414 }
1515
16- getFocusedElementType ( ) : FocusedElementType | undefined {
16+ async getFocusedElementType ( ) : Promise < FocusedElementType | undefined > {
1717 return this . focusedElementType ;
1818 }
1919
Original file line number Diff line number Diff line change 22 * API object for interacting with the command server
33 */
44export interface CommandServerApi {
5- getFocusedElementType : ( ) => FocusedElementType | undefined ;
5+ getFocusedElementType : ( ) => Promise < FocusedElementType | undefined > ;
66
77 signals : {
88 prePhrase : InboundSignal ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export async function getCommandFallback(
1616) : Promise < Fallback | null > {
1717 if (
1818 commandServerApi == null ||
19- commandServerApi . getFocusedElementType ( ) === "textEditor"
19+ ( await commandServerApi . getFocusedElementType ( ) ) === "textEditor"
2020 ) {
2121 return null ;
2222 }
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ export class TestCaseRecorder {
295295 ? spokenForm . spokenForms [ 0 ]
296296 : command . spokenForm ,
297297 } ,
298- this . commandServerApi ?. getFocusedElementType ( ) ,
298+ await this . commandServerApi ?. getFocusedElementType ( ) ,
299299 hatTokenMap ,
300300 this . storedTargets ,
301301 this . spyIde ,
You can’t perform that action at this time.
0 commit comments