Skip to content
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

Refactor > Move to a file #107957

Closed
lcswillems opened this issue Oct 2, 2020 · 1 comment
Closed

Refactor > Move to a file #107957

lcswillems opened this issue Oct 2, 2020 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-code-actions Editor inplace actions (Ctrl + .) javascript JavaScript support issues typescript Typescript support issues

Comments

@lcswillems
Copy link

lcswillems commented Oct 2, 2020

I have a TypeScript codebase. Often, I define a function f in a specific file X but later I want this function to move to an already existing file Y.

What I do is: locate all calls to f. Move f to Y, replace all calls to f when it was in X by calls to f in Y. This is time-consuming and I would think it can be automated with a refactor.

@mjbvz
Copy link
Contributor

mjbvz commented Oct 14, 2020

Duplicate of microsoft/TypeScript#29988

@mjbvz mjbvz marked this as a duplicate of microsoft/TypeScript#29988 Oct 14, 2020
@mjbvz mjbvz closed this as completed Oct 14, 2020
@mjbvz mjbvz added *duplicate Issue identified as a duplicate of another issue(s) editor-code-actions Editor inplace actions (Ctrl + .) javascript JavaScript support issues typescript Typescript support issues labels Oct 14, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-code-actions Editor inplace actions (Ctrl + .) javascript JavaScript support issues typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

2 participants