forcedotcom / analyticsdx-vscode

Salesforce Analytics Extensions for Visual Studio Code
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

Warn if analytics sfdx plugin is missing or old #85

Closed smithgp closed 4 years ago

smithgp commented 4 years ago

At startup, check if the @salesforce/analytics plugin is installed in the user's sfdx; if not, give a notification about that and prompt to install it: Screen Shot 2020-04-16 at 3 31 20 PM If it's older than the minimum the extensions need, warn about that and prompt to update it to the latest: Screen Shot 2020-04-16 at 3 32 38 PM For now, I'm picking the current published version as the minimum; there's no real easy way to just check if it's outdated (I would need to hit the npm registry to check, which is too expensive to do on startup everytime), plus, in theory, sfdx is supposed to be auto-updating itself (although I've found it doesn't work, at least for me). But, for now, the extensions just need to check for the version that has the various commands/arguments that the extensions are using and expecting to be there (.e.g. the --async arg to analytics:app:create).

Also, allow the user to disable this check.