mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-08-10 23:49:38 +08:00
monaco 暗黑
This commit is contained in:
parent
f7caa604d3
commit
a8b15d11d6
@ -28,9 +28,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
initEditor() {
|
||||
this.editor = monaco.editor.create(
|
||||
document.getElementById("monocaEditor"),
|
||||
{
|
||||
let monacoEditorPreferences = {
|
||||
value: "",
|
||||
language: "javascript",
|
||||
automaticLayout: true,
|
||||
@ -40,7 +38,11 @@ export default {
|
||||
minimap: {
|
||||
enabled: false,
|
||||
},
|
||||
}
|
||||
};
|
||||
if (this.$q.dark.isActive) monacoEditorPreferences.theme = "vs-dark";
|
||||
this.editor = monaco.editor.create(
|
||||
document.getElementById("monocaEditor"),
|
||||
monacoEditorPreferences
|
||||
);
|
||||
this.loadTypes();
|
||||
this.registerLanguage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user