Skip to content

Commit

Permalink
fixes #641
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 1, 2021
1 parent cf2fa6a commit 12ee3fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,16 @@ export class ManifestProcessor extends BaseProcessor {
throw new Error('Aborted');
}
}

if (this.manifest.activationEvents?.some(e => e === '*')) {
util.log.warn(
`Using '*' activation is usually a bad idea as it impacts performance.\nMore info: https://code.visualstudio.com/api/references/activation-events#Start-up`
);

if (!/^y$/i.test(await util.read('Do you want to continue? [y/N] '))) {
throw new Error('Aborted');
}
}
}
}

Expand Down

0 comments on commit 12ee3fa

Please sign in to comment.