Skip to content

Commit

Permalink
Update packages/core/src/browser/shell/tab-bar-decorator.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Sujew <mark.sujew@typefox.io>
  • Loading branch information
dhuebner and msujew committed Feb 16, 2024
1 parent 0cb16bc commit 424fe86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/src/browser/shell/tab-bar-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ export class TabBarDecoratorService implements FrontendApplicationContribution {
all = all.concat(decorations);
}
if (Navigatable.is(title.owner)) {
if (title.owner.getResourceUri() !== undefined) {
const serviceDecorations = this.decorationsService.getDecoration(title.owner.getResourceUri()!, false);
all = all.concat(serviceDecorations.map(d => this.toDecorator(d)));
const resourceUri = title.owner.getResourceUri();
if (resourceUri) {
const serviceDecorations = this.decorationsService.getDecoration(resourceUri, false);
all.push(...serviceDecorations.map(d => this.toDecorator(d)));
}
}
return all;
Expand Down

0 comments on commit 424fe86

Please sign in to comment.