diff --git a/packages/preferences/src/browser/util/preference-tree-generator.ts b/packages/preferences/src/browser/util/preference-tree-generator.ts index 683fc5c9ba282..f9efc6c48b9f1 100644 --- a/packages/preferences/src/browser/util/preference-tree-generator.ts +++ b/packages/preferences/src/browser/util/preference-tree-generator.ts @@ -30,8 +30,10 @@ export class PreferenceTreeGenerator { readonly onSchemaChanged = this.onSchemaChangedEmitter.event; @postConstruct() - protected init(): void { + protected async init(): Promise { + await this.schemaProvider.ready; this.schemaProvider.onDidPreferenceSchemaChanged(() => this.handleChangedSchema()); + this.handleChangedSchema(); } generateTree = (): CompositeTreeNode => {