fix profiler formatter issue (#5372)

This commit is contained in:
Alan Ren
2019-05-06 15:39:44 -07:00
committed by Karl Burtram
parent 2a212edf1e
commit f76500d5f0

View File

@@ -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);