Open wowtrxqn opened 4 years ago
我没遇到这个问题,可能是你有些配置写错了吧
我没遇到这个问题,可能是你有些配置谢错了吧
我重新建了个仓库 https://github.com/wowtrxqn/vue-monaco-project-test 复现了这个bug,vue.config.js 如果添加了new MonacoEditorPlugin() ,编辑器背景颜色就是白色,去掉了这个插件背景颜色就是vs-dark的黑色
我没遇到这个问题,可能是你有些配置谢错了吧
哥,能帮我看下为什么我这边一直有这个bug呢,我的测试bug复现的仓库 很简单,配置里就一个MonacoEditorPlugin,其他什么都没有,还是有这个bug
You need to delete monaco-editor from your dependencies.
只要我在配置new MonacoEditorPlugin里面languages添加语言选项,<MonacoEditor .. theme="vs-dark"/> vs-dark编辑器里背景色就变成白色了,去掉new MonacoEditorPlugin({}) 后,vs-dark颜色才恢复正常,是黑色背景,这是什么原因