ChoicescriptIDE / main

32 stars 6 forks source link

Undo/redo stack lost on rename #115

Open CareyJWilliams opened 3 years ago

CareyJWilliams commented 3 years ago

When a scene is renamed we need to re-create its model in order to keep its (Monaco) Uri in sync (as Monaco uses these to uniquely identify models, as will the language services). At the time of writing there is no API for editing the Uri of an already created model, so this is a necessary evil. Unfortunately, it means losing data associated with the model, such as the undo/redo history.