microsoft / codetour

VS Code extension that allows you to record and play back guided tours of codebases, directly within the editor.
https://aka.ms/codetour
MIT License
4.34k stars 109 forks source link

Save when you click away from the codetour tab #234

Open a-guy-on-the-internet opened 2 years ago

a-guy-on-the-internet commented 2 years ago

Hey, I'm an idiot that likes to look at different tabs while also writing tours and not hit save before doing so. Therefore, I'd like an option that causes the current tour being edited to be autosaved when a user clicks away from the tab it is in. Below is an example of that behavior that I don't like.

https://user-images.githubusercontent.com/24993737/161578990-c45acbf9-e7a7-4c60-9cd1-6de7dd48665b.mov

Also, If this is simple fix feel free to drop the relevant file paths I'd need to change (or at least the general areas I need to be aware of) and I could do it myself.

lostintangent commented 2 years ago

Thanks for reporting this! I'm surprised that the text would be cleared when you switch to and from this tab. It's possible that this is a bug in VS Code, so I'll have to investigate it and see what's going on. Stay tuned!

kazemicode commented 1 year ago

This is still an issue today. To anyone who stumbles upon this, my work around is to write out all my tour steps in a .md file first and then paste them in to individual tour steps once I'm done.