So,the following method looks like non-functional anymore and is to be removed from the extension activation:
function migrateFromOdo018(): void {
const newCfgDir = path.join(Platform.getUserHomePath(), '.odo');
const newCfg = path.join(newCfgDir, 'odo-config.yaml');
const oldCfg = path.join(Platform.getUserHomePath(), '.kube', 'odo');
if (!fsx.existsSync(newCfg) && fsx.existsSync(oldCfg)) {
fsx.ensureDirSync(newCfgDir);
fsx.copyFileSync(oldCfg, newCfg);
}
}
The method
migrateFromOdo018looks outdated and doesn't perform properly the migration of ODO preferences:odo-config.yamlODO Global Preference file is not used anymore: a long time ago it was renamed toconfig.yamland then later it was renamed again topreference.yaml(See: Renamed global preference file to preference.yaml from config.yaml odo#1784)~/.odo/preference.yamlin order to migrate properly.So,the following method looks like non-functional anymore and is to be removed from the extension activation: