File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ export class HelpCompletionFeature implements IFeature {
51
51
52
52
// todo raise an event when trigger is found, and attach complete() to the event.
53
53
if ( this . helpCompletionProvider . triggerFound ) {
54
- this . helpCompletionProvider . reset ( ) ;
55
- this . helpCompletionProvider . complete ( ) ;
54
+ this . helpCompletionProvider . complete ( ) . then ( ( ) => this . helpCompletionProvider . reset ( ) ) ;
56
55
}
57
56
58
57
}
@@ -148,7 +147,7 @@ class HelpCompletionProvider {
148
147
let triggerStartPos = this . lastChangeRange . start ;
149
148
let triggerEndPos = this . lastChangeRange . end ;
150
149
let doc = this . lastDocument ;
151
- this . langClient . sendRequest (
150
+ return this . langClient . sendRequest (
152
151
CommentHelpRequest . type ,
153
152
{
154
153
documentUri : doc . uri . toString ( ) ,
You can’t perform that action at this time.
0 commit comments