Disable minimap in the inspector (#34607)
This disables the minimap in the inspector UI as it doesn't bring any value to it and just takes up unnecessary space. Release Notes: - N/A
This commit is contained in:
parent
1d72fa8e9e
commit
ad2bfa3edd
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
use anyhow::{Result, anyhow};
|
use anyhow::{Result, anyhow};
|
||||||
use editor::{Bias, CompletionProvider, Editor, EditorEvent, EditorMode, ExcerptId, MultiBuffer};
|
use editor::{
|
||||||
|
Bias, CompletionProvider, Editor, EditorEvent, EditorMode, ExcerptId, MinimapVisibility,
|
||||||
|
MultiBuffer,
|
||||||
|
};
|
||||||
use fuzzy::StringMatch;
|
use fuzzy::StringMatch;
|
||||||
use gpui::{
|
use gpui::{
|
||||||
AsyncWindowContext, DivInspectorState, Entity, InspectorElementId, IntoElement,
|
AsyncWindowContext, DivInspectorState, Entity, InspectorElementId, IntoElement,
|
||||||
|
@ -499,6 +502,7 @@ impl DivInspector {
|
||||||
editor.set_show_git_diff_gutter(false, cx);
|
editor.set_show_git_diff_gutter(false, cx);
|
||||||
editor.set_show_runnables(false, cx);
|
editor.set_show_runnables(false, cx);
|
||||||
editor.set_show_edit_predictions(Some(false), window, cx);
|
editor.set_show_edit_predictions(Some(false), window, cx);
|
||||||
|
editor.set_minimap_visibility(MinimapVisibility::Disabled, window, cx);
|
||||||
editor
|
editor
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue