fix(lsp): textDocument/references should respect includeDeclaration (#18496)

This commit is contained in:
David Sherret 2023-03-30 12:15:21 -04:00 committed by GitHub
parent cc7f5c1015
commit c4f82cab31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 339 additions and 98 deletions

View file

@ -1121,10 +1121,10 @@ delete Object.prototype.__proto__;
),
);
}
case "getReferences": {
case "findReferences": {
return respond(
id,
languageService.getReferencesAtPosition(
languageService.findReferences(
request.specifier,
request.position,
),