Commit f6eeb135 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'ide-diff-cursor' into 'master'

Disable cursor for review mode in the IDE

Closes #44307

See merge request gitlab-org/gitlab-ce!17955
parents 1de22c67 e10bd302
...@@ -65,6 +65,10 @@ export default class Editor { ...@@ -65,6 +65,10 @@ export default class Editor {
(this.instance = this.monaco.editor.createDiffEditor(domElement, { (this.instance = this.monaco.editor.createDiffEditor(domElement, {
...defaultEditorOptions, ...defaultEditorOptions,
readOnly: true, readOnly: true,
quickSuggestions: false,
occurrencesHighlight: false,
renderLineHighlight: 'none',
hideCursorInOverviewRuler: true,
})), })),
); );
......
...@@ -290,6 +290,10 @@ ...@@ -290,6 +290,10 @@
.margin-view-overlays .delete-sign { .margin-view-overlays .delete-sign {
opacity: 0.4; opacity: 0.4;
} }
.cursors-layer {
display: none;
}
} }
} }
......
...@@ -74,6 +74,10 @@ describe('Multi-file editor library', () => { ...@@ -74,6 +74,10 @@ describe('Multi-file editor library', () => {
}, },
readOnly: true, readOnly: true,
scrollBeyondLastLine: false, scrollBeyondLastLine: false,
quickSuggestions: false,
occurrencesHighlight: false,
renderLineHighlight: 'none',
hideCursorInOverviewRuler: true,
}, },
); );
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment