feat(lsp): add type definition provider (#12789)

This commit is contained in:
Kitson Kelly 2021-11-23 11:09:19 +11:00 committed by GitHub
parent bf5657cd59
commit 210300d049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 150 additions and 2 deletions

View file

@ -810,6 +810,15 @@ delete Object.prototype.__proto__;
ts.getSupportedCodeFixes(),
);
}
case "getTypeDefinition": {
return respond(
id,
languageService.getTypeDefinitionAtPosition(
request.specifier,
request.position,
),
);
}
case "prepareCallHierarchy": {
return respond(
id,