Upgrade Monaco Editor (#847)

This commit is contained in:
Steve Faulkner
2021-05-28 13:58:35 -05:00
committed by GitHub
parent da13a2b3cf
commit 5e2b8d7df0
5 changed files with 35 additions and 12 deletions

View File

@@ -90,7 +90,7 @@ export class JsonEditorViewModel extends WaitsForTemplateViewModel {
protected async createEditor(content: string, createCallback: (e: monaco.editor.IStandaloneCodeEditor) => void) {
this.registerCompletionItemProvider();
this.editorContainer = document.getElementById(this.getEditorId());
const options: monaco.editor.IEditorConstructionOptions = {
const options = {
value: content,
language: this.getEditorLanguage(),
readOnly: this.params.isReadOnly,