I dont want the right minimap, and my code is
const original = [
'#include <iostream>',
'using namespace std;',
'int main()',
'{',
' cout << \"Hello, world!\" << endl;',
];
const modified = [
'#include<iostream>',
'',
'int main()',
'{',
' std::cout << \"Hello, world!\"<< std::endl;'
];
// Hover on each property to see its docs!
const myEditor = monaco.editor.createDiffEditor(document.getElementById("container"), {
originalEditable: true,
renderIndicators: true,
minimap: {
enabled: false,
},
contextmenu: true,
});
myEditor.setModel({
original: monaco.editor.createModel(original.join('n')),
modified: monaco.editor.createModel(modified.join('n')),
});
myEditor.updateOptions({
minimap: {
enabled: false,
},
});
but i can’t close the minimap.
enter image description here
please help me to close the right minimap
New contributor
曾曼青 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.