summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/lib
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-03-23 12:27:20 +0000
committerPhil Hughes <me@iamphill.com>2018-03-23 12:27:20 +0000
commite10bd302a5f1739c9f43b12798b8c29d19690a64 (patch)
tree0c5629d450bfbc3eea96d3aace32cb283458f36e /app/assets/javascripts/ide/lib
parent49e871680ce4ca4ef947916da4969cc4e80991eb (diff)
downloadgitlab-ce-e10bd302a5f1739c9f43b12798b8c29d19690a64.tar.gz
Disable cursor for review mode in the IDEide-diff-cursor
Also disables occurrences highlights & the line highlight for the review mode. Closes #44307
Diffstat (limited to 'app/assets/javascripts/ide/lib')
-rw-r--r--app/assets/javascripts/ide/lib/editor.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/lib/editor.js b/app/assets/javascripts/ide/lib/editor.js
index 38de2fe2b27..887dd7e39b1 100644
--- a/app/assets/javascripts/ide/lib/editor.js
+++ b/app/assets/javascripts/ide/lib/editor.js
@@ -65,6 +65,10 @@ export default class Editor {
(this.instance = this.monaco.editor.createDiffEditor(domElement, {
...defaultEditorOptions,
readOnly: true,
+ quickSuggestions: false,
+ occurrencesHighlight: false,
+ renderLineHighlight: 'none',
+ hideCursorInOverviewRuler: true,
})),
);