Skip to content

Refactor move file #6487

Description

From Csaba Tamás (@tamascsaba) on December 7, 2015 15:15

I want to move file to another location but there is no way :(
like: https://www.jetbrains.com/idea/help/move-refactorings.html

Copied from original issue: microsoft/TypeScript-Sublime-Plugin#416

Activity

  1. mhegazy commented on Jan 14, 2016

    @mhegazy
    ContributorAuthor

    From Csaba Tamás (@tamascsaba) on January 8, 2016 9:8

    ???

  2. added
    SuggestionAn idea for TypeScript
    Domain: APIRelates to the public API for TypeScript
    Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.
    on Jan 14, 2016
  3. RyanCavanaugh commented on Jan 14, 2016

    @RyanCavanaugh
    Member

    What's going on here?

  4. mhegazy commented on Jan 14, 2016

    @mhegazy
    ContributorAuthor

    API support for a new LS operation to move a file. the new operation would result in , similar to rename, a set of changes to be applied to the project.

    for instance, if you more a module, all imports will be adjusted to reflect the new name/path. similarly /// references would be rewritten as well. possiblly tsconfig.json references.

  5. danrasmuson commented on Mar 12, 2016

    @danrasmuson

    +1

  6. mhegazy commented on Sep 29, 2016

    @mhegazy
    ContributorAuthor

    A better explanation can be found in #10218 (comment)

  7. daprahamian commented on Nov 21, 2016

    @daprahamian

    👍

  8. designxtek commented on Jan 27, 2017

    @designxtek

    👍

  9. misantronic commented on Feb 5, 2017

    @misantronic

    +1

  10. sergeushenecz commented on Feb 7, 2017

    @sergeushenecz

    +1

  11. xLama commented on Feb 27, 2017

    @xLama

    I think this is a MUST. Very useful.

  12. remojansen commented on Mar 22, 2017

    @remojansen
    Contributor

    Do you guys have any updates about this issue? It is not in the Roadmap.

  13. 5 remaining items

  14. orgito commented on May 2, 2017

    @orgito

    I have been using this Move TS extension with good results.

  15. designxtek commented on May 17, 2017

    @designxtek

    Would the changes be on vscode or typescript api providing vscode that ability to rename/move files?

  16. jcezarms commented on May 24, 2017

    @jcezarms

    A definite must. If you don't plan a months-ahead architecture for any big project you get in, the final structure will either be a complete mess or organized at the cost of many head-scratching hours.

  17. moonforeshot commented on Jun 9, 2017

    @moonforeshot

    Renato Orgito (@orgito) damn that plugin should have been built into vscode itself! a real gem

  18. alalonde commented on Jun 19, 2017

    @alalonde

    Agreed that this is vital. Without that plugin it would have pushed me over the edge to Webstorm. The only weakness with the plugin is that it saves automatically; to be compatible with "rename symbol" in VSCode it should make the changes in all dependent files but not save them.

  19. Chris2011 commented on Jul 31, 2017

    @Chris2011

    Any news here?

  20. RobertPaulson90 commented on Sep 3, 2017

    @RobertPaulson90

    No news?

  21. baszalmstra commented on Sep 27, 2017

    @baszalmstra

    +1

  22. leocaseiro commented on Sep 28, 2017

    @leocaseiro

    Hi David Schkalee (@misantronic), @sergeu90, tinee and Bas Zalmstra (@baszalmstra)

    Have you ever seen that you could use emoji reaction instead of posting +1?

    Every time we post comments on GitHub, all the subscribers of the topic receive notifications and some users, receive emails too. It's kind of frustrated reading an email written: +1

    The community appreciates if we all start using the reactions instead:
    github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments

    I apologise for any offence it may cause and for the others getting this notification.

  23. umagon commented on Dec 21, 2017

    @umagon

    So, is this not gonna be implemented?

  24. mhegazy commented on May 3, 2018

    @mhegazy
    ContributorAuthor

    Should be covered by:

    1. New rename command: Add 'renameFile' command to services #23573
      Triggered by IDE to update the project after a file rename event
    2. Refactor - Move to a new file: Add 'move to new file' refactor #23726
      Triggered manually by selecting a declaration(s) and moving them to a new file
  25. locked and limited conversation to collaborators on Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: APIRelates to the public API for TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions