microsoft / vscode

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

Remember undo history on hot-exit #15135

Open chrmarti opened 7 years ago

chrmarti commented 7 years ago

This will make restarts/crashes more and more seamless.

Tyriar commented 7 years ago

:+1: would definitely be useful, currently the hot exit code doesn't touch this stuff yet so not sure how much effort it would take to persist the undo stacks.

bpasero commented 7 years ago

I think it would be nice to persist any undo stack across all editors. Needs https://github.com/Microsoft/vscode/issues/7536

BobbyBabes commented 4 years ago

Could we pretty please have this? With sugar on top.

boycce commented 1 year ago

sublime has this, this would be great

gaoqiangks commented 11 months ago

Will you kindly share the status of this issue now? It’s the end of 2023 now. There's an option "restore undo stack", but it doesn't seem to work.

yllekz commented 8 months ago

It also needs to not kill active sessions in Terminals without warning. If one goes to reload, it should either avoid trashing terminals or it should throw up popups that detect active SSH/Exchange/M365/etc sessions and confirm before closing them. Forcing the entire UI to reset feels like a very brutalist way of design and it should be more careful about what it is taking out.

Tyriar commented 8 months ago

@yllekz you can configure that behavior with the terminal.integrated.confirmOnExit setting. If you're just reloading the window it should reconnect the terminals as well.

baotran-bryan commented 2 days ago

I will a bit heavy regarding RAM consumption, but It would be great if VSCode has a feature as "Local History" as Jetbrains IDEs