Update src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
dileepyavan
2026-03-29 23:47:33 -07:00
committed by GitHub
parent 55f09f657e
commit b956dfa719

View File

@@ -742,7 +742,10 @@ export class TerminalSandboxService extends Disposable implements ITerminalSandb
const setting = this._configurationService.inspect<T>(settingId);
const deprecatedSetting = deprecatedSettingId ? this._configurationService.inspect<T>(deprecatedSettingId) : undefined;
if (setting.userValue === undefined && deprecatedSetting?.userValue !== undefined) {
const isSettingConfigured = setting.value !== setting.defaultValue;
const isDeprecatedSettingConfigured = deprecatedSetting !== undefined && deprecatedSetting.value !== deprecatedSetting.defaultValue;
if (!isSettingConfigured && isDeprecatedSettingConfigured) {
this._logService.warn(`TerminalSandboxService: Using deprecated setting ${deprecatedSettingId} because ${settingId} is not set. Please update your settings to use ${settingId} instead.`);
return deprecatedSetting.value;
}