question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement refactor: Move file

See original GitHub issue

Blocked 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:closed
  • Created 6 years ago
  • Reactions:47
  • Comments:47 (22 by maintainers)

github_iconTop GitHub Comments

12reactions
bsuttoncommented, Mar 2, 2020

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.

12reactions
DanTupcommented, Aug 20, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found