mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
add cli update-extensions prototype
This commit is contained in:
@@ -58,6 +58,7 @@ pub struct CodeServerArgs {
|
||||
// extension management
|
||||
pub install_extensions: Vec<String>,
|
||||
pub uninstall_extensions: Vec<String>,
|
||||
pub update_extensions: bool,
|
||||
pub list_extensions: bool,
|
||||
pub show_versions: bool,
|
||||
pub category: Option<String>,
|
||||
@@ -129,6 +130,9 @@ impl CodeServerArgs {
|
||||
for extension in &self.uninstall_extensions {
|
||||
args.push(format!("--uninstall-extension={}", extension));
|
||||
}
|
||||
if self.update_extensions {
|
||||
args.push(String::from("--update-extensions"));
|
||||
}
|
||||
if self.list_extensions {
|
||||
args.push(String::from("--list-extensions"));
|
||||
if self.show_versions {
|
||||
|
||||
Reference in New Issue
Block a user