Code navigation helps you to read, navigate, and understand code by showing and linking definitions of a named entity corresponding to a reference to that entity, as well as references corresponding to an entity's definition. Code navigation uses the open source tree-sitter library. The following languages and navigation strategies are supported.
GitHub has developed two code navigation approaches based on the open source tree-sitter and stack-graphs library: Search-based - searches all definitions and references across a repository to find entities with a given name
Precise - resolves definitions and references based on the set of classes, functions, and imported definitions at a given point in your code
这部分是有文档的 👉 Navigating code on GitHub - GitHub Docs