From b83b9b2571824db3f00d5008de3a22680d808b03 Mon Sep 17 00:00:00 2001 From: Colin Grant Date: Mon, 26 Apr 2021 09:47:56 -0500 Subject: [PATCH] Handle pref display without plugins Signed-off-by: Colin Grant --- .../preferences/src/browser/util/preference-tree-generator.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/preferences/src/browser/util/preference-tree-generator.ts b/packages/preferences/src/browser/util/preference-tree-generator.ts index ce2526326179c..d62cf6dca42aa 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 => {