Skip to content

Commit e87b9d1

Browse files
Added logic to handle case in which project.json doesn't exist
1 parent d7a4ae1 commit e87b9d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/vscode-extension/src/commands/BaseAction.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ export default abstract class BaseAction {
5454

5555
if (this.commandMetadata.isSetupRequired) {
5656
const defaultAuthId = this.getDefaultAuthId();
57-
if (defaultAuthId !== '') {
58-
await this.checkAndRefreshAuthorizationIfNeeded(defaultAuthId);
59-
} else {
57+
if (!defaultAuthId) {
6058
showSetupAccountWarningMessage();
6159
return;
6260
}
61+
await this.checkAndRefreshAuthorizationIfNeeded(defaultAuthId);
6362
}
6463

6564
return this.execute();

0 commit comments

Comments
 (0)