mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
Check if VSCode runs serverless (#118233)
In situations when VSCode runs as remote or serverless we should attempt authentication flow without a local server.
This commit is contained in:
@@ -317,7 +317,10 @@ export class AzureActiveDirectoryService {
|
||||
}
|
||||
|
||||
return new Promise(async (resolve, reject) => {
|
||||
if (vscode.env.remoteName !== undefined) {
|
||||
const runsRemote = vscode.env.remoteName !== undefined;
|
||||
const runsServerless = vscode.env.remoteName === undefined && vscode.env.uiKind === vscode.UIKind.Web;
|
||||
|
||||
if (runsRemote || runsServerless) {
|
||||
resolve(this.loginWithoutLocalServer(scope));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user