Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with_minimap() option for CodeEditor #51

Open
JosiahParry opened this issue Dec 16, 2023 · 2 comments
Open

with_minimap() option for CodeEditor #51

JosiahParry opened this issue Dec 16, 2023 · 2 comments

Comments

@JosiahParry
Copy link

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

@ctron
Copy link
Collaborator

ctron commented Dec 17, 2023

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.

@b0x-Cub3d
Copy link
Contributor

b0x-Cub3d commented Dec 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants