mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 20:57:12 +00:00
have code-oss use device code flow
This commit is contained in:
@@ -45,7 +45,9 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
|
||||
if (this.type === AuthProviderType.github) {
|
||||
this._githubServer = new GitHubServer(
|
||||
// We only can use the Device Code flow when we are running with a remote extension host.
|
||||
context.extension.extensionKind === vscode.ExtensionKind.Workspace,
|
||||
context.extension.extensionKind === vscode.ExtensionKind.Workspace
|
||||
// This should only matter when we are running in code-oss. See the other change in this commit.
|
||||
|| vscode.env.uiKind === vscode.UIKind.Desktop,
|
||||
this._logger,
|
||||
this._telemetryReporter);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user