diff --git a/src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts b/src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts index 4227a53a04d84b5bb88bf0f014ef6d004d3728fb..9903bb630f885dd23b6c504ecddc9fa4b550f223 100644 --- a/src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts +++ b/src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts @@ -219,21 +219,17 @@ export class RuntimeExtensionsEditor extends BaseEditor { }; } - result = result.filter((element) => element.status.activationTimes); - - if (this._profileInfo) { - // sort descending by time spent in the profiler - result = result.sort((a, b) => { - if (a.unresponsiveProfile === this._profileInfo && !b.unresponsiveProfile) { - return -1; - } else if (!a.unresponsiveProfile && b.unresponsiveProfile === this._profileInfo) { - return 1; - } else if (a.profileInfo.totalTime === b.profileInfo.totalTime) { - return a.originalIndex - b.originalIndex; - } - return b.profileInfo.totalTime - a.profileInfo.totalTime; - }); - } + result = result.filter(element => element.status.activationTimes); + + // bubble up extensions that have caused slowness + result = result.sort((a, b) => { + if (a.unresponsiveProfile === this._profileInfo && !b.unresponsiveProfile) { + return -1; + } else if (!a.unresponsiveProfile && b.unresponsiveProfile === this._profileInfo) { + return 1; + } + return a.originalIndex - b.originalIndex; + }); return result; }