如何正确设置Monaco编辑器的文本内容,而不用担心撤销堆栈?monacoEditor.setValue("text")
似乎在深处崩溃:
vue.esm.js?efeb:1741 TypeError: (intermediate value)(intermediate value)(intermediate value).create is not a function
at D (textModel.ts:90)
at f.setValue (textModel.ts:385)
at t.setValue (commonCodeEditor.ts:211)
at VueComponent.loadFile (ResourceViewer.vue?d447:85)