Revert "Pass renderer locale to exthost, fixes #85675 (#141095)"

This reverts commit 0233e80d64.

Mitigates #142857
This commit is contained in:
Raymond Zhao 2022-02-14 17:46:17 -08:00
parent e491208ae0
commit e8cfc68ce4
No known key found for this signature in database
GPG key ID: D36E5FCE46B63B58

View file

@ -208,11 +208,6 @@ export class LocalProcessExtensionHost implements IExtensionHost {
this._extensionHostProcess = new ExtensionHostProcess(extensionHostCreationResult.id, this._extensionHostStarter);
let lang = processEnv['LANG'];
if (platform.isMacintosh && lang === undefined) {
lang = Intl.DateTimeFormat().resolvedOptions().locale;
}
const env = objects.mixin(processEnv, {
VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
VSCODE_PIPE_LOGGING: 'true',
@ -220,8 +215,7 @@ export class LocalProcessExtensionHost implements IExtensionHost {
VSCODE_LOG_NATIVE: this._isExtensionDevHost,
VSCODE_IPC_HOOK_EXTHOST: pipeName,
VSCODE_HANDLES_UNCAUGHT_ERRORS: true,
VSCODE_LOG_STACK: !this._isExtensionDevTestFromCli && (this._isExtensionDevHost || !this._environmentService.isBuilt || this._productService.quality !== 'stable' || this._environmentService.verbose),
'LANG': lang
VSCODE_LOG_STACK: !this._isExtensionDevTestFromCli && (this._isExtensionDevHost || !this._environmentService.isBuilt || this._productService.quality !== 'stable' || this._environmentService.verbose)
});
if (this._environmentService.debugExtensionHost.env) {