resolving vscode thenable
vscode Thenable is a promise, we just need to return a promised of a type, as illustrated in code below :- class CodeCompletionItemProvider implements CompletionItemProvider { public provideCompletionItems ( document : vscode . TextDocument , position : vscode . Position , token : vscode . CancellationToken ): Thenable < vscode . CompletionItem []> { let linePrefix = document . lineAt ( position ). text . substr ( 0 , position . character ); if ( linePrefix . endsWith ( 'std.' )) { console . log ( 'great stuff!!!!' ); // returning thenable // ...