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. added
    Experience Enhancement
    Domain: LS: Symbol Navigation
    on Oct 19, 2022
  2. sviat9440 commented on Oct 20, 2022

    @sviat9440
  3. MohitBansal321 commented on Feb 22, 2023

    @MohitBansal321
  4. 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 NavigationExperience Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions