mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
Portable mode improvements and bug fixes (#287063)
Disabled protocol handlers and registry updates on Windows in portable mode. Added API proposal to detect if VS Code is running in portable mode from extensions. Skipped protocol redirect in GitHub authentication in portable mode.
This commit is contained in:
@@ -391,6 +391,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
checkProposedApiEnabled(extension, 'devDeviceId');
|
||||
return initData.telemetryInfo.devDeviceId ?? initData.telemetryInfo.machineId;
|
||||
},
|
||||
get isAppPortable() {
|
||||
checkProposedApiEnabled(extension, 'envIsAppPortable');
|
||||
return initData.environment.isPortable ?? false;
|
||||
},
|
||||
get sessionId() { return initData.telemetryInfo.sessionId; },
|
||||
get language() { return initData.environment.appLanguage; },
|
||||
get appName() { return initData.environment.appName; },
|
||||
|
||||
Reference in New Issue
Block a user