rust-monaco icon indicating copy to clipboard operation
rust-monaco copied to clipboard

with_minimap() option for CodeEditor

Open JosiahParry opened this issue 1 year ago • 2 comments

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

JosiahParry avatar Dec 16 '23 23:12 JosiahParry

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.

ctron avatar Dec 17 '23 16:12 ctron

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));

b0x-Cub3d avatar Dec 27 '23 03:12 b0x-Cub3d