🐛 fix config loading

This commit is contained in:
Nate Sesti 2024-05-29 09:15:59 -07:00
parent ba04ee4984
commit 78ec8ef561
2 changed files with 5 additions and 5 deletions

View file

@ -43,10 +43,11 @@ export class ConfigHandler {
reloadConfig() {
this.savedConfig = undefined;
this.savedBrowserConfig = undefined;
this.loadConfig();
for (const listener of this.updateListeners) {
listener();
}
this.loadConfig().then(() => {
for (const listener of this.updateListeners) {
listener();
}
});
}
async getSerializedConfig(): Promise<BrowserSerializedContinueConfig> {

View file

@ -112,7 +112,6 @@ export class VsCodeExtension {
setupRemoteConfigSync(
this.configHandler.reloadConfig.bind(this.configHandler),
);
this.core = new Core(inProcessMessenger, this.ide);
// Indexing + pause token
this.diffManager.webviewProtocol = this.webviewProtocol;