We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a4ae1 commit e87b9d1Copy full SHA for e87b9d1
packages/vscode-extension/src/commands/BaseAction.ts
@@ -54,12 +54,11 @@ export default abstract class BaseAction {
54
55
if (this.commandMetadata.isSetupRequired) {
56
const defaultAuthId = this.getDefaultAuthId();
57
- if (defaultAuthId !== '') {
58
- await this.checkAndRefreshAuthorizationIfNeeded(defaultAuthId);
59
- } else {
+ if (!defaultAuthId) {
60
showSetupAccountWarningMessage();
61
return;
62
}
+ await this.checkAndRefreshAuthorizationIfNeeded(defaultAuthId);
63
64
65
return this.execute();
0 commit comments