Skip to content

[vscode language service extension] Rename its references automatically when selector changes #70790

Description

@hannah23280

Which @angular/* package(s) are relevant/related to the feature request?

No response

Description

Note: I do not know if this is the correct forum to raise this query related to vscode angular language service extension. But the extension page lead me to this forum.

In vscode, when i change the selector of a directive class, say 'selector': '[highlight]' change to 'selector':'[highlight1]'
attribute highlight that appears on all the elements in entire codebase does not automatically change to highlight1

Proposed solution

Changing the selector of a directive class should also change the selector that are applied to all the elements. Intellij can do this, but vscode unable to.

This should not be constrainted just to directive, but also to Component as well.

Alternatives considered

Rename the selector used on all elements manually by hand, which can be tedious, let alone be error prone. Can also use find and replace, but again, can accidentally change something unintended.

Activity

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

    area: vscode-extensionIssues related to the Angular Language Service VsCode extensiongemini-triagedLabel noting that an issue has been triaged by gemini

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions