Protected Optional_Protected_Protected_Protected Optional_Protected_Protected_Protected ReadonlychangeProtected OptionalcodeProtected ReadonlycodeProtected ReadonlyeditorProtected ReadonlyelementProtected ReadonlyfileProtected ReadonlyfileProtected ReadonlyinProtected ReadonlymonacoReadonlyonProtected ReadonlyonProtected ReadonlytoProtectedchangeProtectedreadOptionalcontents: stringProtectedapplyApplies changes using Monaco utilities, including loading the model for the base file URI, setting the value to the intended state, and running code actions on save.
Optionalcontents: stringProtectedapplyProtectedapplyApplies formatting preferences like format on save, trim trailing whitespace, and insert final newline.
ProtecteddoEnsures that the element is fully initialized before proceeding. This includes loading the original content from the file system.
ProtectedgetGets the original content of the file asynchronously. Ensures initialization is complete before returning the content.
ProtectedinitializeProtectedlistenProtectedobtainCalled when an element is shown in the UI
Serializes this element to a format suitable for persistence. Each element type is responsible for serializing its own data. Optional - elements without this method will be excluded from serialization.
Optionalcontents: stringStaticto
Returns true if the element has been fully initialized.