mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-20 02:34:37 +01:00
* Pass renderer locale to exthost, fixes #85675 * Restrict fix to macOS
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user