Don't run the local server option if we are running in remote (#169076)

Additionally improve the conditional for device code flow.

ref #168338
This commit is contained in:
Tyler James Leonhardt
2022-12-13 17:18:25 -08:00
committed by GitHub
parent cd744cab40
commit 342a1f4f52
2 changed files with 11 additions and 6 deletions

View File

@@ -68,8 +68,7 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
this._logger,
this._telemetryReporter,
uriHandler,
// We only can use the Device Code flow when we have a full node environment because of CORS.
context.extension.extensionKind === vscode.ExtensionKind.Workspace || vscode.env.uiKind === vscode.UIKind.Desktop,
context.extension.extensionKind,
ghesUri);
// Contains the current state of the sessions we have available.