MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / loadMonaco

Function loadMonaco

frontend/app/monaco/monaco-env.ts:42–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40};
41
42export function loadMonaco() {
43 if (monacoConfigured) {
44 return;
45 }
46 monacoConfigured = true;
47 monaco.editor.defineTheme("wave-theme-dark", {
48 base: "vs-dark",
49 inherit: true,
50 rules: [],
51 colors: {
52 "editor.background": "#00000000",
53 "editorStickyScroll.background": "#00000055",
54 "minimap.background": "#00000077",
55 focusBorder: "#00000000",
56 },
57 });
58 monaco.editor.defineTheme("wave-theme-light", {
59 base: "vs",
60 inherit: true,
61 rules: [],
62 colors: {
63 "editor.background": "#fefefe",
64 focusBorder: "#00000000",
65 },
66 });
67 configureMonacoYaml(monaco, {
68 validate: true,
69 schemas: [],
70 });
71 monaco.editor.setTheme("wave-theme-dark");
72 // Disable default validation errors for typescript and javascript
73 monaco.typescript.typescriptDefaults.setDiagnosticsOptions({
74 noSemanticValidation: true,
75 });
76 monaco.json.jsonDefaults.setDiagnosticsOptions({
77 validate: true,
78 allowComments: false,
79 enableSchemaRequest: true,
80 schemas: MonacoSchemas,
81 });
82}

Callers 4

initWaveFunction · 0.90
initBuilderFunction · 0.90
MonacoCodeEditorFunction · 0.90
MonacoDiffViewerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected