Prepare Editor Model to accept options
What does this MR do?
Prepare Editor Model to accept options
Add support in Web IDE Editor Model class to allow setting certain options that can be modified later. The options include both existing options already supported by Monaco, and some custom options that are updated to the model value right before dispose.
Existing options now configurable:
insertSpaces
indentSize
tabSize
Custom options added:
trimTrailingWhitespace
endOfLine
insertFinalNewline
The existing options listed above are applied immediately and sent to Monaco. The custom options are applied on switching from the "Edit" tab to the "Commit" tab.
This is an initial step for the work in !32378 (merged) to be easily reviewable.
Edited by Himanshu Kapoor