lsp: Rename show_preview_ui argument to show_preview_toolbar

This commit is contained in:
Tobias Hunger 2023-11-23 18:23:32 +01:00 committed by Tobias Hunger
parent fd36b17481
commit 01f6771693

View file

@ -185,9 +185,9 @@ struct Cli {
#[arg(long, action)]
fullscreen: bool,
/// Show the preview UI
/// Show the preview toolbar
#[arg(long, default_value = "true", action = clap::ArgAction::Set)]
show_preview_ui: bool,
show_preview_toolbar: bool,
}
enum OutgoingRequest {
@ -348,7 +348,7 @@ fn main_loop(connection: Connection, init_param: InitializeParams, args: &Cli) -
#[cfg(all(feature = "preview-builtin", feature = "preview-external"))]
use_external_previewer: RefCell::new(false), // prefer internal
to_show: RefCell::new(None),
show_preview_ui: RefCell::new(args.show_preview_ui),
show_preview_ui: RefCell::new(args.show_preview_toolbar),
});
let mut compiler_config =
CompilerConfiguration::new(i_slint_compiler::generator::OutputFormat::Interpreter);