Merge pull request #1538 from QwenLM/chore/rename-skills-settings

fix(cli): relocate skills setting to experimental namespace
This commit is contained in:
tanzhenxin 2026-01-19 16:06:37 +08:00 committed by GitHub
commit 95c551c1b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 23 deletions

View file

@ -921,6 +921,21 @@ export function migrateDeprecatedSettings(
loadedSettings.setValue(scope, 'extensions', newExtensionsValue);
}
const legacySkills = (
settings as Settings & {
tools?: { experimental?: { skills?: boolean } };
}
).tools?.experimental?.skills;
if (
legacySkills !== undefined &&
settings.experimental?.skills === undefined
) {
console.log(
`Migrating deprecated tools.experimental.skills setting from ${scope} settings...`,
);
loadedSettings.setValue(scope, 'experimental.skills', legacySkills);
}
};
processScope(SettingScope.User);