editor: Add support for no scroll margin in full mode (#41838)

Noticed this whilst testing the Docker debugger. I randomly scrolled the
console off screen and was confused briefly as to why this was the case.

Release Notes:

- The debugger query console will no longer needlessly overscroll.
This commit is contained in:
Finn Evers
2025-11-03 20:47:39 +01:00
committed by GitHub
parent 4da5675920
commit 08daedd014
7 changed files with 42 additions and 17 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ mod ui_components;
use anyhow::{Context as _, anyhow};
use collections::{HashMap, HashSet};
use editor::{CompletionProvider, Editor, EditorEvent};
use editor::{CompletionProvider, Editor, EditorEvent, EditorMode, SizingBehavior};
use fs::Fs;
use fuzzy::{StringMatch, StringMatchCandidate};
use gpui::{
@@ -2788,10 +2788,10 @@ impl ActionArgumentsEditor {
let editor = cx.new_window_entity(|window, cx| {
let multi_buffer = cx.new(|cx| editor::MultiBuffer::singleton(buffer, cx));
let mut editor = Editor::new(
editor::EditorMode::Full {
EditorMode::Full {
scale_ui_elements_with_buffer_font_size: true,
show_active_line_background: false,
sized_by_content: true,
sizing_behavior: SizingBehavior::SizeByContent,
},
multi_buffer,
project.upgrade(),