Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: downgrade monaco-editor to 0.34 (#7802)

Liu Ji31b579397ab2
diff --git a/frontend/package.json b/frontend/package.json
index 856727c5e8..b441db442a 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -46,7 +46,7 @@
"lucide-vue-next": "^0.268.0",
"markdown-it": "^13.0.1",
"maz-ui": "^3.9.0",
- "monaco-editor": "0.41.0",
+ "monaco-editor": "0.34.1",
"monaco-languageclient": "4.0.1",
"naive-ui": "2.34.4",
"nice-grpc-common": "^2.0.0",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index 3aee46c4ef..d3e587d19a 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -102,8 +102,8 @@ dependencies:
specifier: ^3.9.0
monaco-editor:
- specifier: 0.41.0
- version: 0.41.0
+ specifier: 0.34.1
+ version: 0.34.1
monaco-languageclient:
specifier: 4.0.1
@@ -4001,10 +4001,6 @@ packages:
resolution: {integrity: sha512-FKc80TyiMaruhJKKPz5SpJPIjL+dflGvz4CpuThaPMc94AyN7SeC9HQ8hrvaxX7EyHdJcUY5i4D0gNyJj1vSZQ==}
dev: false
- resolution: {integrity: sha512-1o4olnZJsiLmv5pwLEAmzHTE/5geLKQ07BrGxlF4Ri/AXAc2yyDGZwHjiTqD8D/ROKUZmwMA28A+yEowLNOEcA==}
- dev: false
-
resolution: {integrity: sha512-mUIq/7gQM/8CyOBVGv0thLRAR80vk49Ur0ROJveoh6R0/uwaUoyri+5OBslxsa5BICftLTsC8/Y+at6/iW50Ww==}
engines: {node: '>=16.11.0', npm: '>=8.0.0'}
diff --git a/frontend/src/components/MonacoEditor/DiffEditor.vue b/frontend/src/components/MonacoEditor/DiffEditor.vue
index 7b2335902f..3ef4c1df33 100644
--- a/frontend/src/components/MonacoEditor/DiffEditor.vue
+++ b/frontend/src/components/MonacoEditor/DiffEditor.vue
@@ -61,7 +61,6 @@ const initEditorInstance = () => {
const editorInstance = Editor.createDiffEditor(editorContainerRef.value!, {
readOnly: readOnly.value,
// Learn more: https://github.com/microsoft/monaco-editor/issues/311
- diffAlgorithm: "advanced",
enableSplitViewResizing: false,
renderValidationDecorations: "on",
theme: "bb",