vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Allow to recover directories from local history

Open JeffreyArt1 opened this issue 1 year ago • 5 comments

Local history it's a very useful feature. That said, it would be nice if it can work with directories as well.

JeffreyArt1 avatar Jun 20 '23 15:06 JeffreyArt1

I do not understand the ask here, what does it mean to recover a directory?

bpasero avatar Jun 20 '23 17:06 bpasero

I've accidentally done a git reset --hard on a branch, and multiple uncommited files were lost. In that context, when trying to recover the changes, i had to go to every and each file (one by one) and recover the changes.

Currently when you open the timeline tab (with no files open) you get the next view: image

So, my question is: can this feature (Local File History) be extended so that the user can recover multiple files within a certain directory, or provide a file tree view where the user can see the files that were deleted recently?

JeffreyArt1 avatar Jun 20 '23 19:06 JeffreyArt1

Thanks for clarifying, no, that is not possible today.

bpasero avatar Jun 20 '23 19:06 bpasero

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

VSCodeTriageBot avatar Jun 20 '23 19:06 VSCodeTriageBot

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

VSCodeTriageBot avatar Jul 08 '23 02:07 VSCodeTriageBot