mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
* Pass renderer locale to exthost, fixes #85675 * Restrict fix to macOS
This commit is contained in:
parent
571a3c3a55
commit
0233e80d64
|
@ -212,6 +212,11 @@ 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',
|
||||
|
@ -219,7 +224,8 @@ 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)
|
||||
VSCODE_LOG_STACK: !this._isExtensionDevTestFromCli && (this._isExtensionDevHost || !this._environmentService.isBuilt || this._productService.quality !== 'stable' || this._environmentService.verbose),
|
||||
'LANG': lang
|
||||
});
|
||||
|
||||
if (this._environmentService.debugExtensionHost.env) {
|
||||
|
|
Loading…
Reference in a new issue