Skip to content

Support inlining variables that are used in object literal shorthand #57028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mjbvz opened this issue Jan 11, 2024 · 0 comments Β· Fixed by #57051
Closed

Support inlining variables that are used in object literal shorthand #57028

mjbvz opened this issue Jan 11, 2024 · 0 comments Β· Fixed by #57051
Labels
Domain: Refactorings e.g. extract to constant or function, rename symbol Experience Enhancement Noncontroversial enhancements Help Wanted You can do this Suggestion An idea for TypeScript
Milestone

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Jan 11, 2024

πŸ”Ž Search Terms

inline, refactor, refactoring

πŸ•— Version & Regression Information

Not a recession

⏯ Playground Link

No response

πŸ’» Code

const abc = 123;
const obj = { abc };

Try inlining abc

πŸ™ Actual behavior

No refactoring offered

πŸ™‚ Expected behavior

We should show a inline refactoring that results in:

const obj = { abc: 123 };

Additional information about the issue

No response

@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Help Wanted You can do this Experience Enhancement Noncontroversial enhancements labels Jan 12, 2024
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Jan 12, 2024
@RyanCavanaugh RyanCavanaugh added the Domain: Refactorings e.g. extract to constant or function, rename symbol label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: Refactorings e.g. extract to constant or function, rename symbol Experience Enhancement Noncontroversial enhancements Help Wanted You can do this Suggestion An idea for TypeScript
Projects
None yet
2 participants