Update based on comments

This commit is contained in:
Matt Bierner
2017-09-12 09:05:06 -07:00
parent 377eabe614
commit 89773f358e
6 changed files with 23 additions and 27 deletions

View File

@@ -493,9 +493,9 @@ class SuggestAdapter {
return asWinJsPromise<vscode.CompletionItem[] | vscode.CompletionList>(token => {
if (this._provider.provideCompletionItems.length <= 3) {
return (this._provider.provideCompletionItems as vscode.ProviderCompletionItems)(doc, pos, token);
return this._provider.provideCompletionItems(doc, pos, token);
}
return (this._provider.provideCompletionItems as vscode.ProviderCompletionItemsForContext)(doc, pos, context, token);
return this._provider.provideCompletionItems(doc, pos, context, token);
}).then(value => {
const _id = this._idPool++;