Re-enable MSAL broker on macOS (#267833)

Fixes https://github.com/microsoft/vscode/issues/260158
This commit is contained in:
Tyler James Leonhardt
2025-09-22 13:36:31 -07:00
committed by GitHub
parent 31d762909e
commit bf0108fb1e
2 changed files with 5 additions and 5 deletions

View File

@@ -51,8 +51,8 @@ export class CachedPublicClientApplication implements ICachedPublicClientApplica
const loggerOptions = new MsalLoggerOptions(_logger, telemetryReporter);
let broker: BrokerOptions | undefined;
if (process.platform !== 'win32') {
this._logger.info(`[${this._clientId}] Native Broker is only available on Windows`);
if (process.platform !== 'win32' && process.platform !== 'darwin') {
this._logger.info(`[${this._clientId}] Native Broker is only available on Windows and macOS`);
} else if (workspace.getConfiguration('microsoft-authentication').get<'msal' | 'msal-no-broker'>('implementation') === 'msal-no-broker') {
this._logger.info(`[${this._clientId}] Native Broker disabled via settings`);
} else {