microsoft / typespec

https://typespec.io/
MIT License
4.49k stars 214 forks source link

Can we have a history of my tsp examples in cadl playground #2156

Open qiaozha opened 1 year ago

qiaozha commented 1 year ago

I found sometimes, it's not very convenient to find the tsp examples I used to write in the cadl playground. Wondering if we can have some kind of my tsp examples history. maybe just store those I saved or shared. I would image this could involve authentication if I want to see my own history.

qiaozha commented 1 year ago

Also not sure if historical examples of tsp would count as personal data? if yes, we will probably need to handle it more carefully.

bterlson commented 1 year ago

We could probably store it in LocalStorage rather than on a back-end service, though it would be tied to your device rather than stored on a back-end. I doubt we would want to be in the business of storing user code on our website for various reasons (requires back-end, database, legal policies, etc.)

qiaozha commented 1 year ago

I think local storage should be fine. Is it possible to have meaningful short link for the typespec I share ? If yes, I guess we can let the Browser remmember the links for me when I switch devices which I do.