Skip to content

Inline local refactoring #18459

Description

@mjbvz

Proposal
Add a refactoring to inline a local variable. Example:

functiongeneratePipeName(): string{consthexString=makeRandomHexString(40);returngetPipeName(hexString);}

The Inline local refactoring on hexString would result in:

functiongeneratePipeName(): string{returngetPipeName(makeRandomHexString(40));}

Metadata

Metadata

Labels

Domain: LS: Refactoringse.g. extract to constant or function, rename symbolFix AvailableA PR has been opened for this issueIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions