Skip to content

Commit 97a1ccf

Browse files
committed
Render more details in running extensions
1 parent 7feea00 commit 97a1ccf

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ export class RuntimeExtensionsEditor extends BaseEditor {
254254
msgIcon: HTMLElement;
255255
msgLabel: HTMLElement;
256256

257+
msgIcon2: HTMLElement;
258+
msgLabel2: HTMLElement;
259+
257260
actionbar: ActionBar;
258261
disposables: IDisposable[];
259262
elementDisposables: IDisposable[];
@@ -271,6 +274,9 @@ export class RuntimeExtensionsEditor extends BaseEditor {
271274
const msgIcon = append(msgContainer, $('.'));
272275
const msgLabel = append(msgContainer, $('span.msg-label'));
273276

277+
const msgIcon2 = append(msgContainer, $('.'));
278+
const msgLabel2 = append(msgContainer, $('span.msg-label'));
279+
274280
const timeContainer = append(element, $('.time'));
275281
const activationTime = append(timeContainer, $('div.activation-time'));
276282
const profileTime = append(timeContainer, $('div.profile-time'));
@@ -295,6 +301,8 @@ export class RuntimeExtensionsEditor extends BaseEditor {
295301
profileTimeline,
296302
msgIcon,
297303
msgLabel,
304+
msgIcon2,
305+
msgLabel2,
298306
disposables,
299307
elementDisposables: []
300308
};
@@ -365,6 +373,14 @@ export class RuntimeExtensionsEditor extends BaseEditor {
365373
data.msgLabel.textContent = '';
366374
}
367375

376+
if (element.description.extensionLocation.scheme !== 'file') {
377+
data.msgIcon2.className = 'octicon octicon-rss';
378+
data.msgLabel2.textContent = element.description.extensionLocation.authority;
379+
} else {
380+
data.msgIcon2.className = '';
381+
data.msgLabel2.textContent = '';
382+
}
383+
368384
if (this._profileInfo) {
369385
data.profileTime.textContent = `Profile: ${(element.profileInfo.totalTime / 1000).toFixed(2)}ms`;
370386
const elementSegments = element.profileInfo.segments;

0 commit comments

Comments
 (0)