Commit e10bd302 authored by Phil Hughes's avatar Phil Hughes

Disable cursor for review mode in the IDE

Also disables occurrences highlights & the line highlight for the review
mode.

Closes #44307
parent 49e87168
...@@ -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