Skip to content

Commit db7bc22

Browse files
authored
Merge pull request #884 from oracle/bugfix/PDPDEVTOOL-6004-VSCode-Remove-the-Option-authid-must-have-a-value-error-when-creating-new-project
Bugfix/PDPDEVTOOL-6004: [vscode] Removed the "option --authid must have a value" error message when creating new project
2 parents d7a4ae1 + e87b9d1 commit db7bc22

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)