提交 673d75e7 编写于 作者: B Benjamin Pasero

config - add method to get known configuration keys

上级 8c4bf4a4
......@@ -175,4 +175,17 @@ export function flatten(contents: any): any {
}
return root;
}
export function getConfigurationKeys(): string[] {
const keys: string[] = [];
const configurations = Registry.as<IConfigurationRegistry>(Extensions.Configuration).getConfigurations();
configurations.forEach(config => {
if (config.properties) {
keys.push(...Object.keys(config.properties));
}
});
return keys;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册