File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export class StartWorkCommand extends QuickCommand<State> {
103
103
104
104
let opened = false ;
105
105
while ( this . canStepsContinue ( state ) ) {
106
- const hasConnectedIntegrations = [ ... context . connectedIntegrations . values ( ) ] . some ( c => c ) ;
106
+ const hasConnectedIntegrations = this . hasConnectedIntegrations ( context ) ;
107
107
context . title = this . title ;
108
108
109
109
if ( state . counter < 1 ) {
@@ -159,6 +159,11 @@ export class StartWorkCommand extends QuickCommand<State> {
159
159
if ( result === StepResultBreak ) {
160
160
return result ;
161
161
}
162
+ context . connectedIntegrations = await this . getConnectedIntegrations ( ) ;
163
+ if ( ! this . hasConnectedIntegrations ( context ) ) {
164
+ state . counter -- ;
165
+ continue ;
166
+ }
162
167
}
163
168
164
169
await updateContextItems ( this . container , context ) ;
@@ -513,6 +518,10 @@ export class StartWorkCommand extends QuickCommand<State> {
513
518
514
519
return connected ;
515
520
}
521
+
522
+ private hasConnectedIntegrations ( context : Context ) {
523
+ return [ ...context . connectedIntegrations . values ( ) ] . some ( c => c ) ;
524
+ }
516
525
}
517
526
518
527
async function updateContextItems ( container : Container , context : Context ) {
You can’t perform that action at this time.
0 commit comments