Prompt for arcdata install upon extension activation (fix) (#20167)

* Made prompt when no arcdata upon startup

* Changed to NoAzureCLIArcExtError

Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
Candice Ye
2022-07-26 16:45:30 -07:00
committed by GitHub
parent 518bb33a2f
commit 79ba314953
3 changed files with 5 additions and 8 deletions

View File

@@ -5,9 +5,7 @@
import * as azExt from 'az-ext';
import { IAzTool } from './az';
import Logger from './common/logger';
import { NoAzureCLIError } from './common/utils';
import * as loc from './localizedConstants';
import { AzToolService } from './services/azToolService';
/**
@@ -21,7 +19,6 @@ export function validateAz(az: IAzTool | undefined) {
export function throwIfNoAz(localAz: IAzTool | undefined): asserts localAz {
if (!localAz) {
Logger.log(loc.noAzureCLI);
throw new NoAzureCLIError();
}
}