Nathan-Nesbitt / Minecraft_AI

An in game AI implementation for Minecraft Education
MIT License
4 stars 2 forks source link

Add the ability to save the browser code to the disk #25

Closed Nathan-Nesbitt closed 2 years ago

Nathan-Nesbitt commented 3 years ago

Since it's a bit of a pain to re-write your code over and over again every time that you restart the terminal we should provide a way of saving the code to the disk. Since you have a webserver set up you should be able to simply load the contents of the monaco browser into a file when the user clicks the "save code" button.

This should be a dropdown menu or something, or should automatically save on change and allow you to save to a different file if you select the save as button.