* fix #234843

* fix lint error
This commit is contained in:
Sandeep Somavarapu
2024-12-12 16:48:37 +01:00
committed by GitHub
parent ded87f9d8e
commit 4920694ece
9 changed files with 18 additions and 2 deletions

View File

@@ -85,6 +85,8 @@ pub fn try_parse_legacy(
subcommand: ExtensionSubcommand::Install(InstallExtensionArgs {
id_or_path: exts,
pre_release: args.contains_key("pre-release"),
donot_include_pack_and_dependencies: args
.contains_key("do-not-include-pack-dependencies"),
force: args.contains_key("force"),
}),
desktop_code_options,

View File

@@ -293,6 +293,9 @@ impl ExtensionSubcommand {
if args.pre_release {
target.push("--pre-release".to_string());
}
if args.donot_include_pack_and_dependencies {
target.push("do-not-include-pack-dependencies".to_string());
}
if args.force {
target.push("--force".to_string());
}
@@ -333,6 +336,10 @@ pub struct InstallExtensionArgs {
#[clap(long)]
pub pre_release: bool,
/// Don't include installing pack and dependencies of the extension
#[clap(long)]
pub donot_include_pack_and_dependencies: bool,
/// Update to the latest version of the extension if it's already installed.
#[clap(long)]
pub force: bool,

View File

@@ -67,6 +67,7 @@ pub struct CodeServerArgs {
pub show_versions: bool,
pub category: Option<String>,
pub pre_release: bool,
pub donot_include_pack_and_dependencies: bool,
pub force: bool,
pub start_server: bool,
// connection tokens