Update genCommond.js

This commit is contained in:
any86 2020-02-22 01:38:56 +08:00 committed by GitHub
parent 107587e3b1
commit 9168000836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,9 @@ RULES.forEach((rule, index) => {
title: `zz: ${rule.title}`
});
pkg.activationEvents.push('onCommand:extension.rule'+index);
pkg.activationEvents.push('*');
})
// console.log(JSON.stringify(pkg));
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 4), 'utf8');
console.log(chalk.green('🚀 pkg文件修改完毕, 请等待生成vsc包...'));
console.log(chalk.green('🚀 pkg文件修改完毕, 请等待生成vsc包...'));