fix profiler formatter issue (#5372)

This commit is contained in:
Alan Ren
2019-05-06 15:39:44 -07:00
committed by GitHub
parent 7cca1b9f48
commit 4f96d5caf2

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