Skip to content

Commit 01382f5

Browse files
authored
Merge pull request #8812 from continuedev/dallin/default-configs-broken
fix: HOTIFX notify config listeners when no config available
2 parents 9448bd8 + d8021f5 commit 01382f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/config/ConfigHandler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,13 @@ export class ConfigHandler {
502502
this.totalConfigReloads += 1;
503503
// console.log(`Reloading config (#${this.totalConfigLoads}): ${reason}`); // Uncomment to see config loading logs
504504
if (!this.currentProfile) {
505-
return {
505+
const out = {
506506
config: undefined,
507507
errors: injectErrors,
508508
configLoadInterrupted: true,
509509
};
510+
this.notifyConfigListeners(out);
511+
return out;
510512
}
511513

512514
for (const org of this.organizations) {

0 commit comments

Comments
 (0)