Skip to content

Go-to-definition on case or default should jump to the containing switch statement if available. #51225

Closed

Description

/*END*/switch (null) {
  /*START*/case null: break;
}
/*END*/switch (null) {
  /*START*/default: break;
}

Those should work.

The following should not have issues.

export /*a*/default {}
export default { /*a*/case }
/*b*/default;
/*c*/case 42;

Activity

  1. sviat9440 commented on Oct 20, 2022

    @sviat9440
  2. MohitBansal321 commented on Feb 22, 2023

    @MohitBansal321
  3. Rohankeshav commented on Oct 1, 2023

    @Rohankeshav
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

    Domain: LS: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Experience EnhancementNoncontroversial enhancementsGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions