提交 49ed34f8 编写于 作者: J Johannes Rieken

support leafOnly option

上级 b63319d9
......@@ -20,6 +20,7 @@ export interface IResourceDecoration {
readonly suffix?: string;
readonly color?: ColorIdentifier;
readonly icon?: URI | { dark: URI, light: URI };
readonly leafOnly?: boolean;
}
export interface IDecorationsProvider {
......
......@@ -89,7 +89,7 @@ class DecorationProviderWrapper {
const childTree = this._data.findSuperstr(key);
if (childTree) {
childTree.forEach(([, value]) => {
if (value && !isThenable<void>(value)) {
if (value && !isThenable<void>(value) && !value.leafOnly) {
callback(value);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册