facebook / facebook/pyrefly

finding all references to symbol

Open
#2,573 1 comment 0 reactions 0 assignees View on GitHub
language-server question
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

I'm gathering major Python project API details across versions plus how those APIs are used by other Python projects to gain insights into API drift / focus areas / possibilities for better project packaging and API management. To gather the data I'm building a harvester that is fast and reasonably complete and utilising a language server fits that use-case rather nicely.

My biggest challenge so far is to get a language server to give me all references to aliased module use, e.g. import numpy as np, then finding all references to np.abs, etc. I may have to enumerate all workspace symbols and then expand aliased imports from there. If you have better ideas I'd love to hear these! :-)

ref https://github.com/zubanls/zuban/issues/188

maybe a feature?

### Sandbox Link

_No response_

### (Only applicable for extension issues) IDE Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.