rust-monaco
rust-monaco copied to clipboard
with_minimap() option for CodeEditor
It would be really nice to be able to remove the minimap from the editor. The way I thought I might do that would be with the with_*()
methods on the CodeEditorOptions
struct
There's a PR pending (#46) for updating monaco and the way the interfaces get generated. It needs more work though. I just can't find enough time to work on this at the moment.
If someone has some time, I would appreciate some help.
Currently, you can access the minimap options via IEditorMinimapOptions
. Here's example code for disabling the minimap:
let options = IStandaloneEditorConstructionOptions::default();
let minimap = IEditorMinimapOptions::default();
minimap.set_enabled(false.into());
options.set_minimap(Some(&minimap));