Skip to content

Commit ccefc38

Browse files
committed
fix: await showSignatureHelp
1 parent 5ae58e6 commit ccefc38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/signature-help-manager.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ export class SignatureHelpManager {
3131
editor.onDidDestroy(() => disposable?.dispose())
3232
}),
3333
atom.commands.add("atom-text-editor", {
34-
"signature-help:show": (evt) => {
34+
"signature-help:show": async (evt) => {
3535
const editor = evt.currentTarget.getModel()
3636
if (atom.workspace.isTextEditor(editor)) {
3737
const provider = this.providerRegistry.getProviderForEditor(editor)
3838
const position = editor.getLastCursor().getBufferPosition()
3939
if (provider) {
40-
this.showSignatureHelp(provider, editor, position)
40+
await this.showSignatureHelp(provider, editor, position)
4141
}
4242
}
4343
},
@@ -142,7 +142,7 @@ export class SignatureHelpManager {
142142
})
143143

144144
this.editorSubscriptions.add(
145-
this.editor.getBuffer().onDidChangeText((evt) => {
145+
this.editor.getBuffer().onDidChangeText(async (evt) => {
146146
if (evt.changes.length != 1) {
147147
return
148148
}
@@ -171,7 +171,7 @@ export class SignatureHelpManager {
171171
}
172172

173173
if (provider.triggerCharacters?.has(change.newText[index])) {
174-
this.showSignatureHelp(provider, editor, cursorPosition)
174+
await this.showSignatureHelp(provider, editor, cursorPosition)
175175
}
176176
})
177177
)

0 commit comments

Comments
 (0)