|
5 | 5 |
|
6 | 6 | import { getAllCodicons } from '../../../base/common/codicons.js';
|
7 | 7 | import { IJSONSchema, IJSONSchemaMap } from '../../../base/common/jsonSchema.js';
|
8 |
| -import { OperatingSystem, Platform, PlatformToString } from '../../../base/common/platform.js'; |
| 8 | +import { isWindows, OperatingSystem, Platform, PlatformToString } from '../../../base/common/platform.js'; |
9 | 9 | import { localize } from '../../../nls.js';
|
10 | 10 | import { ConfigurationScope, Extensions, IConfigurationNode, IConfigurationRegistry } from '../../configuration/common/configurationRegistry.js';
|
11 | 11 | import { Registry } from '../../registry/common/platform.js';
|
@@ -336,9 +336,10 @@ const terminalPlatformConfiguration: IConfigurationNode = {
|
336 | 336 | },
|
337 | 337 | [TerminalSettingId.InheritEnv]: {
|
338 | 338 | scope: ConfigurationScope.APPLICATION,
|
339 |
| - description: localize('terminal.integrated.inheritEnv', "Whether new shells should inherit their environment from VS Code, which may source a login shell to ensure $PATH and other development variables are initialized. This has no effect on Windows."), |
| 339 | + description: localize('terminal.integrated.inheritEnv', "Whether new shells should inherit their environment from VS Code, which may source a login shell to ensure $PATH and other development variables are initialized."), |
340 | 340 | type: 'boolean',
|
341 |
| - default: true |
| 341 | + // False by default on Windows to prevent powershell inheritance issues (#251446) |
| 342 | + default: isWindows ? false : true, |
342 | 343 | },
|
343 | 344 | [TerminalSettingId.PersistentSessionScrollback]: {
|
344 | 345 | scope: ConfigurationScope.APPLICATION,
|
|
0 commit comments