From dc42beb237883d130555c2919a7ce86a720b3dc8 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Tue, 18 May 2021 21:02:10 -0700 Subject: [PATCH] fix extension commands loc display issue (#15509) --- .../dashboard/browser/core/dashboardPage.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts b/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts index a183f50736..161e21cd8e 100644 --- a/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts +++ b/src/sql/workbench/contrib/dashboard/browser/core/dashboardPage.component.ts @@ -254,8 +254,9 @@ export abstract class DashboardPage extends AngularDisposable implements IConfig let toolbarActions = []; _tasks.forEach(a => { - let iconClassName = TaskRegistry.getOrCreateTaskIconClassName(a); - toolbarActions.push(new ToolbarAction(a.id, a.title.toString(), iconClassName, this.runAction, this, this.logService)); + const iconClassName = TaskRegistry.getOrCreateTaskIconClassName(a); + const title = typeof a.title === 'string' ? a.title : a.title.value; + toolbarActions.push(new ToolbarAction(a.id, title, iconClassName, this.runAction, this, this.logService)); }); let content: ITaskbarContent[] = [];