This commit is contained in:
Jackson Kearl
2021-06-02 18:30:01 -07:00
parent 884b1e7a0d
commit 6f0ce2e750
@@ -148,10 +148,12 @@ export class SearchEditorInput extends EditorInput {
this._cachedResultsModel = data.resultsModel;
this._cachedConfigurationModel = data.configurationModel;
this._onDidChangeLabel.fire();
this._register(this._cachedConfigurationModel.onConfigDidUpdate(() => {
this._onDidChangeLabel.fire();
this.memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE).searchConfig = this._cachedConfigurationModel?.config;
}));
if (!this.isDisposed()) {
this._register(this._cachedConfigurationModel.onConfigDidUpdate(() => {
this._onDidChangeLabel.fire();
this.memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE).searchConfig = this._cachedConfigurationModel?.config;
}));
}
return data;
});
}