Interface FilterContribution

Register filters to remove contributions.

interface FilterContribution {
    registerContributionFilters(registry): void;
}

Methods

  • Use the registry to register your contribution filters.

    • Note that filtering contributions based on their class (constructor) name is discouraged. Class names are minified in production builds and therefore not reliable. Use instance of checks or direct constructor comparison instead:
    registry.addFilters('*', [
    contrib => !(contrib instanceof SampleFilteredCommandContribution)
    ]);

    Parameters

    Returns void