-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Domain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
Proposal
Add a refactoring to inline a local variable. Example:
function generatePipeName(): string {
const hexString = makeRandomHexString(40);
return getPipeName(hexString);
}
The Inline local
refactoring on hexString
would result in:
function generatePipeName(): string {
return getPipeName(makeRandomHexString(40));
}
aluanhaddad, kondi, dderevjanik, xanonid, eddiegroves and 94 morealuanhaddad, OliverJAsh, a-tarasyuk, TylerNielsen, charles-allen and 22 more
Metadata
Metadata
Assignees
Labels
Domain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue