Change setLocaleVariables to detectLocale

The setting is now an enum instead of boolean and defaults to auto
which should provide better detection and not set in cases where it
shouldn't.

Fixes #80072
This commit is contained in:
Daniel Imms
2019-09-12 16:16:07 -07:00
parent 7694f65adb
commit ebed7e9c5e
4 changed files with 26 additions and 10 deletions

View File

@@ -182,7 +182,7 @@ export class ExtHostTerminalService extends BaseExtHostTerminalService {
this._variableResolver,
isWorkspaceShellAllowed,
pkg.version,
terminalConfig.get<boolean>('setLocaleVariables', false),
terminalConfig.get<string>('detectLocale', 'auto'),
baseEnv
);