Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TreeDecoratorService

The TreeDecoratorService manages a set of known {link TreeDecorator}s and emits events when any of the known decorators has changes. Typically, a TreeDecoratorService provides a contribution point that can be used to register TreeDecorators exclusively for this service.

Example usage

export const MyTreeDecorator = Symbol('MyTreeDecorator');

@injectable()
export class MyDecorationService extends AbstractTreeDecoratorService {
constructor(@inject(ContributionProvider) @named(MyTreeDecorator) protected readonly contributions: ContributionProvider<TreeDecorator>) {
super(contributions.getContributions());
}
}

Hierarchy

Index

Properties

onDidChangeDecorations: Event<void>

Fired when any of the available tree decorators has changes.

Methods

  • dispose(): void