mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
chore: update CLI dependences, add env var options for login
This commit is contained in:
@@ -789,11 +789,11 @@ pub enum TunnelUserSubCommands {
|
||||
#[derive(Args, Debug, Clone)]
|
||||
pub struct LoginArgs {
|
||||
/// An access token to store for authentication.
|
||||
#[clap(long, requires = "provider")]
|
||||
#[clap(long, requires = "provider", env = "VSCODE_CLI_ACCESS_TOKEN")]
|
||||
pub access_token: Option<String>,
|
||||
|
||||
/// An access token to store for authentication.
|
||||
#[clap(long, requires = "access_token")]
|
||||
#[clap(long, requires = "access_token", env = "VSCODE_CLI_REFRESH_TOKEN")]
|
||||
pub refresh_token: Option<String>,
|
||||
|
||||
/// The auth provider to use. If not provided, a prompt will be shown.
|
||||
|
||||
@@ -634,6 +634,7 @@ const METHOD_STREAMS_STARTED: &str = "streams_started";
|
||||
const METHOD_STREAM_DATA: &str = "stream_data";
|
||||
const METHOD_STREAM_ENDED: &str = "stream_ended";
|
||||
|
||||
#[allow(dead_code)] // false positive
|
||||
trait AssertIsSync: Sync {}
|
||||
impl<S: Serialization, C: Send + Sync> AssertIsSync for RpcDispatcher<S, C> {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user