Implement refactor: Move file
See original GitHub issueBlocked on https://github.com/microsoft/vscode/issues/43768 being finalised.
Update: The VS Code API works, however despite supporting multiple files
, it is only ever fired once-per-file https://github.com/microsoft/vscode/blob/926fc23f139e4d1250dba494c6e825e4816e62f6/src/vs/workbench/api/common/extHostFileSystemEventService.ts#L148 concurrently. This results in multiple MOVE_FILE
calls to the analysis server, which currently only supports one refactor at a time (a new refactor cancels the previous).
The implement this reasonably (and without causing a potentially-large number of sequential requests to the server) we need to either have the server support multiple files, or do more work on the server (eg. via LSP).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:47
- Comments:47 (22 by maintainers)
Top Results From Across the Web
Move Type to Another File refactoring - ReSharper - JetBrains
Move a type to another file ; Press Ctrl+R O and then choose Move to Another File ; Press Ctrl+Shift+R and then choose...
Read more >'refactor' move files in VSCode - es6 - Stack Overflow
If I move a file in the editor, it should find all the import statements and update them to the new location. Is...
Read more >Move type to matching file refactoring - Visual Studio (Windows)
Move a type to a separate file with the same name. Right-click the type, select Quick Actions and Refactorings, and select Move Type...
Read more >Move Implementation to Source File
Refactoring with Move Implementation to Source File provides C/C++ users with an efficient mechanism for moving the implementation of a function or method ......
Read more >Working with Refactoring
Renaming / Moving Files · Create RenFile1 and RenFile2 as described in steps 1 to 3 underRenaming a File, above. · Within the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This feature is in our top four friction points with the dart tooling for vscode. Which for the record are: this issue. lack of auto completion of method arguments minimal refactoring tools copy/paste of required import statements when copying a piece of code.
The work is mostly done here, but it requires a VS Code feature that is currently part of the provisional API. In order to ship this, we need it to be moved to the stable API.
The relevant issue is https://github.com/microsoft/vscode/issues/43768. I’ll ping again to see if there’s any update.