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

Support file renames #139

Closed
ghost opened this issue Jul 9, 2020 · 3 comments
Closed

Support file renames #139

ghost opened this issue Jul 9, 2020 · 3 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jul 9, 2020

At the moment there does not seem to be any way to rename files from within VSCode such that Mercurial would keep track of the rename. Doing it from the command line of course works, but then one has to go through the slightly cumbersome step of closing and reopening the file in VSCode.

  1. Would it be possible for the extension to hook into the VSCode explorer rename feature to tell Mercurial of the rename?
  2. If VSCode doesn't make this easy, would it be possible to provide the rename functionality in the SCM tab?
@hdpoliveira
Copy link
Collaborator

No1 may be feasible by listening to the onDidRenameFiles workspace event.

@Alphare
Copy link

Alphare commented Dec 14, 2021

Just so it's said: hg move source target --after (or the same with copy) would work if run in the right hook from VSCode.

@incidentist incidentist self-assigned this Dec 30, 2021
incidentist added a commit to incidentist/vscode-hg that referenced this issue Jan 3, 2022
TODO: turn this into an Operation and support multiple files
@incidentist
Copy link
Collaborator

This will ship in 1.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants