Skip to content

for-loop labels cannot be renamed #10019

Closed
@antonkh

Description

@antonkh

I'm using tsc 2.0.0 in vs 2015 (with update 3 installed) and trying to rename a for-loop label:

loop: for (const item of items) {
  for (let i = 0; i < n; i++) {
    if (test(i, item))
      continue loop;
  }
}

The ts language service says "You cannot rename this element." However when I click on the loop label, it correctly highlights all its occurrences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFix AvailableA PR has been opened for this issueFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions