We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 763618c commit 2cfb13dCopy full SHA for 2cfb13d
src/features/HelpCompletion.ts
@@ -51,8 +51,7 @@ export class HelpCompletionFeature implements IFeature {
51
52
// todo raise an event when trigger is found, and attach complete() to the event.
53
if (this.helpCompletionProvider.triggerFound) {
54
- this.helpCompletionProvider.reset();
55
- this.helpCompletionProvider.complete();
+ this.helpCompletionProvider.complete().then(() => this.helpCompletionProvider.reset());
56
}
57
58
@@ -148,7 +147,7 @@ class HelpCompletionProvider {
148
147
let triggerStartPos = this.lastChangeRange.start;
149
let triggerEndPos = this.lastChangeRange.end;
150
let doc = this.lastDocument;
151
- this.langClient.sendRequest(
+ return this.langClient.sendRequest(
152
CommentHelpRequest.type,
153
{
154
documentUri: doc.uri.toString(),
0 commit comments