microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162k stars 28.48k forks source link

Adjust save location of local history #193970

Open jankap opened 11 months ago

jankap commented 11 months ago

Local history is a great feature and I love it.

Howevey, everytime I rebuild a remote Docker devcontainer, which happens frequently during development, the local history is gone.

Is there any way to specify the location, i.e. where to store the local versions?

Would be nice to keep them close to the workspace, not in a global user folder.

Making the location of file history settable would be great. I assume it's not a big change.

Thanks :)

bpasero commented 11 months ago

Currently not. When you are connected to a remote, the local history is inside the remote so that it "travels" with you when you connect from another machine.

VSCodeTriageBot commented 11 months ago

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!

jankap commented 11 months ago

Currently not. When you are connected to a remote, the local history is inside the remote so that it "travels" with you when you connect from another machine.

The problem is that it's not a real remote. It's a Docker remote container and whenever the devcontainer is rebuilt, the history is gone.

TomasHubelbauer commented 1 month ago

For Google travelers, the file location where the Local History entries live is here: C:\Users\user\AppData\Roaming\Code\User\History