Lazily Create Monaco Models in Resource Preference Providers #7426
Labels
enhancement
issues that are enhancements to current functionality - nice to haves
help wanted
issues meant to be picked up, require help
monaco
issues related to monaco
preferences
issues related to preferences
For a while now, AbstractResourcePreferenceProvider has used monaco editor models to manage the contents of settings files. This creates a circular dependency, because the editor model waits for preferences to be ready and preferences can't be read before the editor model is created. While this seems to work, I think it would be better if we would apply the following changes:
Opening an editor will create a model, which will wait for preferences to be ready. I also would setting a preference before the preferences provider is ready to be a programming error to be rejected.
The text was updated successfully, but these errors were encountered: