Skip to content

Support inline refactoring for exported typescript variables #62771

@johndoknjas

Description

@johndoknjas

In the following screenshot, when right-clicking on acceptableEloRegex and choosing Refactor, no option appears for inlining. The only usage of this variable in the codebase was in the definition right below it.

Image

Code in text form:

export const acceptableEloRegex = new RegExp(`^${acceptableEloPattern}$`);

export const isAcceptableElo = (value: string): boolean =>
  acceptableEloRegex.test(value);

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbol

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions