add resolveDocumentLink method to the API

This commit is contained in:
Johannes Rieken
2016-08-03 17:32:07 +02:00
parent 07a53e91d0
commit 90172cec0a
6 changed files with 38 additions and 7 deletions

View File

@@ -209,7 +209,10 @@ export class MainThreadLanguageFeatures extends MainThreadLanguageFeaturesShape
$registerDocumentLinkProvider(handle: number, selector: vscode.DocumentSelector): TPromise<any> {
this._registrations[handle] = modes.LinkProviderRegistry.register(selector, <modes.LinkProvider>{
provideLinks: (model, token) => {
return wireCancellationToken(token, this._proxy.$providDocumentLinks(handle, model.uri));
return wireCancellationToken(token, this._proxy.$provideDocumentLinks(handle, model.uri));
},
resolveLink: (link, token) => {
return wireCancellationToken(token, this._proxy.$resolveDocumentLink(handle, link));
}
});
return undefined;