From f76500d5f098be07ed562ea11ba69641cd9a4436 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Mon, 6 May 2019 15:39:44 -0700 Subject: [PATCH] fix profiler formatter issue (#5372) --- .../workbench/parts/profiler/browser/profilerTableEditor.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sql/workbench/parts/profiler/browser/profilerTableEditor.ts b/src/sql/workbench/parts/profiler/browser/profilerTableEditor.ts index 25cf9f0768..0051c73025 100644 --- a/src/sql/workbench/parts/profiler/browser/profilerTableEditor.ts +++ b/src/sql/workbench/parts/profiler/browser/profilerTableEditor.ts @@ -141,7 +141,11 @@ export class ProfilerTableEditor extends BaseEditor implements IProfilerControll this._findCountChangeListener = input.data.onFindCountChange(() => this._updateFinderMatchState()); this._profilerTable.setData(input.data); - this._profilerTable.columns = input.columns; + this._profilerTable.columns = input.columns.map(c => { + c.formatter = textFormatter; + return c; + }); + this._profilerTable.autosizeColumns(); this._input.data.currentFindPosition.then(val => { this._profilerTable.setActiveCell(val.row, val.col);