Skip to content

Precise code navigation for JavaScript and TypeScript #371

Description

@github-product-roadmap

Summary

Precise code navigation – a convenience already available for Python – is coming for JavaScript and TypeScript. When a developer views code on GitHub and clicks on a type name, method, function, or class instance, GitHub will allow navigation to the specific definition of that item. For example, if code calls a method named constant() and multiple classes have a method with that name, precise code navigation will automatically identify and navigate to the correct one that is referenced, as shown here:

image

This is different than today's search-based navigation, where for these languages a developer might need to choose from multiple definitions with the same name, as shown here:

Intended Outcome

Even when code contains multiple definitions with similar names, GitHub will support navigating to the specific definition that the code references. The code navigation engine knows the precise definition by indexing the code using stack graphs.

How will it work?

There will be no visual change to how code navigation works today except that for JavaScript and TypeScript, developers will not be prompted to choose between multiple, similarly named definitions. Code navigation will know precisely which definition is referenced.

Activity

  1. locked and limited conversation to collaborators on Jan 12, 2022
  2. moved this to Q1 2022 – Jan-Mar in GitHub Public Roadmapon Jan 12, 2022
  3. changed the title [-]Precise code navigation for JavaScript, TypeScript, and Java[/-] [+]Precise code navigation for JavaScript and TypeScript[/+] on Mar 15, 2022
  4. moved this from Q1 2022 – Jan-Mar to Q2 2022 – Apr-Jun in GitHub Public Roadmapon Apr 13, 2022
  5. moved this from Q2 2022 – Apr-Jun to Q3 2022 – Jul-Sep in GitHub Public Roadmapon Jun 15, 2022
  6. moved this from Q3 2022 – Jul-Sep to Q4 2022 – Oct-Dec in GitHub Public Roadmapon Aug 17, 2022
  7. moved this from Q4 2022 – Oct-Dec to Future in GitHub Public Roadmapon Feb 13, 2023
  8. ankneis commented on Nov 20, 2024

    @ankneis
    Contributor

    This issue is being closed as outdated. For more information, please check out this Discussion post. Stay tuned for new additions to our refreshed public roadmap!

  9. ankneis commented on Dec 6, 2024

    @ankneis
    Contributor

    We wanted to provide more details on why we removed this from the roadmap. We are currently prioritizing other features on our roadmap at this time, and are removing this from the roadmap until we are able to prioritize this again.

    If you’re interested in this feature, please share your feedback in the GitHub community so we can track interest and consider it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GAFeature phase: Generally availableallProduct SKU: AllcloudAvailable on CloudsearchFeature: Github Search

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions