terminal - use product to figure out quality (#242226)

This commit is contained in:
Benjamin Pasero
2025-02-28 09:55:53 +01:00
committed by GitHub
parent 9c227f0795
commit 6e6ef83a2a
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -8,7 +8,9 @@ import { IProductConfiguration } from '../../../base/common/product.js';
import { ISandboxConfiguration } from '../../../base/parts/sandbox/common/sandboxTypes.js';
/**
* @deprecated You MUST use `IProductService` if possible.
* @deprecated It is preferred that you use `IProductService` if you can. This
* allows web embedders to override our defaults. But for things like `product.quality`,
* the use is fine because that property is not overridable.
*/
let product: IProductConfiguration;
@@ -72,7 +74,4 @@ else {
}
}
/**
* @deprecated You MUST use `IProductService` if possible.
*/
export default product;
@@ -486,7 +486,7 @@ const terminalConfiguration: IConfigurationNode = {
markdownDescription: localize('terminal.integrated.windowsUseConptyDll', "Whether to use the experimental conpty.dll (v1.22.250204002) shipped with VS Code, instead of the one bundled with Windows."),
type: 'boolean',
tags: ['preview'],
default: product.quality !== 'stable',
default: product.quality !== 'stable'
},
[TerminalSettingId.SplitCwd]: {
description: localize('terminal.integrated.splitCwd', "Controls the working directory a split terminal starts with."),
@@ -610,7 +610,7 @@ const terminalConfiguration: IConfigurationNode = {
[TerminalSettingId.ShellIntegrationEnvironmentReporting]: {
markdownDescription: localize('terminal.integrated.shellIntegration.environmentReporting', "Controls whether to report the shell environment, enabling its use in features such as {0}. This may cause a slowdown when printing your shell's prompt.", `\`#${TerminalContribSettingId.SuggestEnabled}#\``),
type: 'boolean',
default: product.quality !== 'stable',
default: product.quality !== 'stable'
},
[TerminalSettingId.SmoothScrolling]: {
markdownDescription: localize('terminal.integrated.smoothScrolling', "Controls whether the terminal will scroll using an animation."),