@@ -134,11 +134,7 @@ export class CWInlineCompletionItemProvider implements vscode.InlineCompletionIt
134134 }
135135 }
136136
137- // the returned completion items will always only contain one valid item
138- // this is to trace the current index of visible completion item
139- // so that reference tracker can show
140- // This hack can be removed once inlineCompletionAdditions API becomes public
141- provideInlineCompletionItems (
137+ _completion (
142138 document : vscode . TextDocument ,
143139 position : vscode . Position ,
144140 _context : vscode . InlineCompletionContext ,
@@ -199,4 +195,19 @@ export class CWInlineCompletionItemProvider implements vscode.InlineCompletionIt
199195 this . activeItemIndex = undefined
200196 return [ ]
201197 }
198+
199+ // the returned completion items will always only contain one valid item
200+ // this is to trace the current index of visible completion item
201+ // so that reference tracker can show
202+ // This hack can be removed once inlineCompletionAdditions API becomes public
203+ provideInlineCompletionItems (
204+ document : vscode . TextDocument ,
205+ position : vscode . Position ,
206+ _context : vscode . InlineCompletionContext ,
207+ _token : vscode . CancellationToken
208+ ) : vscode . ProviderResult < vscode . InlineCompletionItem [ ] | vscode . InlineCompletionList > {
209+ const result = this . _completion ( document , position , _context , _token )
210+ console . log ( 'completion result: %O' , result )
211+ return result
212+ }
202213}
0 commit comments