close
Skip to content

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

@DanielRosenwasser

Description

@DanielRosenwasser
/*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;

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions