@@ -31,13 +31,13 @@ export class SignatureHelpManager {
31
31
editor . onDidDestroy ( ( ) => disposable ?. dispose ( ) )
32
32
} ) ,
33
33
atom . commands . add ( "atom-text-editor" , {
34
- "signature-help:show" : ( evt ) => {
34
+ "signature-help:show" : async ( evt ) => {
35
35
const editor = evt . currentTarget . getModel ( )
36
36
if ( atom . workspace . isTextEditor ( editor ) ) {
37
37
const provider = this . providerRegistry . getProviderForEditor ( editor )
38
38
const position = editor . getLastCursor ( ) . getBufferPosition ( )
39
39
if ( provider ) {
40
- this . showSignatureHelp ( provider , editor , position )
40
+ await this . showSignatureHelp ( provider , editor , position )
41
41
}
42
42
}
43
43
} ,
@@ -142,7 +142,7 @@ export class SignatureHelpManager {
142
142
} )
143
143
144
144
this . editorSubscriptions . add (
145
- this . editor . getBuffer ( ) . onDidChangeText ( ( evt ) => {
145
+ this . editor . getBuffer ( ) . onDidChangeText ( async ( evt ) => {
146
146
if ( evt . changes . length != 1 ) {
147
147
return
148
148
}
@@ -171,7 +171,7 @@ export class SignatureHelpManager {
171
171
}
172
172
173
173
if ( provider . triggerCharacters ?. has ( change . newText [ index ] ) ) {
174
- this . showSignatureHelp ( provider , editor , cursorPosition )
174
+ await this . showSignatureHelp ( provider , editor , cursorPosition )
175
175
}
176
176
} )
177
177
)
0 commit comments