How can we hide breadcrumb for a particular file type?

How we can hide breadcrumb for a particular file type?

@kalyan3d thank you for the discussion, in a custom extension you can extend the BreadcrumbsService and re-implement the getBreadcrumbs method.

For example:

import { Breadcrumb, BreadcrumbsService } from '@theia/core/lib/browser';
import URI from '@theia/core/lib/common/uri';
import { injectable } from '@theia/core/shared/inversify';

export class BreadcrumbsFilterService extends BreadcrumbsService {

    async getBreadcrumbs(uri: URI): Promise<Breadcrumb[]> {
        // Skip '.json' files.
        if (uri.toString().endsWith('.json')) {
            return [];
        const result: Breadcrumb[] = [];
        for (const contribution of await this.prioritizedContributions()) {
            result.push(...await contribution.computeBreadcrumbs(uri));
        return result;

import { BreadcrumbsService } from '@theia/core/lib/browser';
import { ContainerModule } from '@theia/core/shared/inversify'
import { BreadcrumbsFilterService } from './breadcrumbs-filter-service';

export default new ContainerModule((bind, unbind, isBound, rebind) => {

Thanks for such a quick response.