Skip to content

Commit

Permalink
still do not merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeingold35 committed Sep 17, 2024
1 parent f33c5fd commit 2af2ab2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,15 @@ export async function _stopExistingDfaRun(context: vscode.ExtensionContext): Pro
* @throws If {@code sf}/{@code sfdx} or {@code @salesforce/sfdx-scanner} is not installed.
*/
export async function verifyPluginInstallation(): Promise<void> {
console.log('pre-install check');
if (!await SfCli.isSfCliInstalled()) {
console.log('Cli not installed');
throw new Error(messages.error.sfMissing);
} else if (!await SfCli.isCodeAnalyzerInstalled()) {
console.log('Code analyzer not installed');
throw new Error(messages.error.sfdxScannerMissing);
}
console.log('installed');
}

export function registerScanOnSave() {
Expand Down

0 comments on commit 2af2ab2

Please sign in to comment.