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 authored and GitHub committed 2022-12-13 17:18:25 -08:00
1 parent cd744cab40
commit 342a1f4f52
2 files changed
+11 -6

No files matched your search

@@ -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.