mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-02 23:09:59 +00:00
* Revert "fix #232043 (#233596)"
This reverts commit e9d6c6afc0.
* #232043 revert cli command and support downloading VSIX in UI
This commit is contained in:
committed by
GitHub
parent
02d23bdf5d
commit
653fd419de
@@ -7,7 +7,7 @@ use std::collections::HashMap;
|
||||
|
||||
use cli::commands::args::{
|
||||
CliCore, Commands, DesktopCodeOptions, ExtensionArgs, ExtensionSubcommand,
|
||||
InstallExtensionArgs, ListExtensionArgs, UninstallExtensionArgs, DownloadExtensionArgs,
|
||||
InstallExtensionArgs, ListExtensionArgs, UninstallExtensionArgs,
|
||||
};
|
||||
|
||||
/// Tries to parse the argv using the legacy CLI interface, looking for its
|
||||
@@ -64,7 +64,6 @@ pub fn try_parse_legacy(
|
||||
// Now translate them to subcommands.
|
||||
// --list-extensions -> ext list
|
||||
// --update-extensions -> update
|
||||
// --download-extension -> ext download <id>
|
||||
// --install-extension=id -> ext install <id>
|
||||
// --uninstall-extension=id -> ext uninstall <id>
|
||||
// --status -> status
|
||||
@@ -80,17 +79,6 @@ pub fn try_parse_legacy(
|
||||
})),
|
||||
..Default::default()
|
||||
})
|
||||
} else if let Some(exts) = args.get("download-extension") {
|
||||
Some(CliCore {
|
||||
subcommand: Some(Commands::Extension(ExtensionArgs {
|
||||
subcommand: ExtensionSubcommand::Download(DownloadExtensionArgs {
|
||||
id: exts.to_vec(),
|
||||
location: get_first_arg_value("location"),
|
||||
}),
|
||||
desktop_code_options,
|
||||
})),
|
||||
..Default::default()
|
||||
})
|
||||
} else if let Some(exts) = args.remove("install-extension") {
|
||||
Some(CliCore {
|
||||
subcommand: Some(Commands::Extension(ExtensionArgs {
|
||||
|
||||
Reference in New Issue
Block a user