From 4f96d5caf2f06bb606cd3b726c17a210c9ee799b 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 1114151b63..2146077d7f 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);