From 19af7812e2674b8131afa9ab44ee4de9040ebf76 Mon Sep 17 00:00:00 2001 From: Dennis Huebner Date: Fri, 9 Feb 2024 15:11:34 +0100 Subject: [PATCH] Update packages/core/src/browser/shell/tab-bar-decorator.ts Co-authored-by: Mark Sujew --- packages/core/src/browser/shell/tab-bar-decorator.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/core/src/browser/shell/tab-bar-decorator.ts b/packages/core/src/browser/shell/tab-bar-decorator.ts index ec5ef4ba15553..a19b71a7b260a 100644 --- a/packages/core/src/browser/shell/tab-bar-decorator.ts +++ b/packages/core/src/browser/shell/tab-bar-decorator.ts @@ -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;