提交 97a1ccf1 编写于 作者: A Alex Dima

Render more details in running extensions

上级 7feea007
......@@ -254,6 +254,9 @@ export class RuntimeExtensionsEditor extends BaseEditor {
msgIcon: HTMLElement;
msgLabel: HTMLElement;
msgIcon2: HTMLElement;
msgLabel2: HTMLElement;
actionbar: ActionBar;
disposables: IDisposable[];
elementDisposables: IDisposable[];
......@@ -271,6 +274,9 @@ export class RuntimeExtensionsEditor extends BaseEditor {
const msgIcon = append(msgContainer, $('.'));
const msgLabel = append(msgContainer, $('span.msg-label'));
const msgIcon2 = append(msgContainer, $('.'));
const msgLabel2 = append(msgContainer, $('span.msg-label'));
const timeContainer = append(element, $('.time'));
const activationTime = append(timeContainer, $('div.activation-time'));
const profileTime = append(timeContainer, $('div.profile-time'));
......@@ -295,6 +301,8 @@ export class RuntimeExtensionsEditor extends BaseEditor {
profileTimeline,
msgIcon,
msgLabel,
msgIcon2,
msgLabel2,
disposables,
elementDisposables: []
};
......@@ -365,6 +373,14 @@ export class RuntimeExtensionsEditor extends BaseEditor {
data.msgLabel.textContent = '';
}
if (element.description.extensionLocation.scheme !== 'file') {
data.msgIcon2.className = 'octicon octicon-rss';
data.msgLabel2.textContent = element.description.extensionLocation.authority;
} else {
data.msgIcon2.className = '';
data.msgLabel2.textContent = '';
}
if (this._profileInfo) {
data.profileTime.textContent = `Profile: ${(element.profileInfo.totalTime / 1000).toFixed(2)}ms`;
const elementSegments = element.profileInfo.segments;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册