提交 dc9bdc2f 编写于 作者: S stoyannk

Fixed wrong variable name shadowing that caused Profiles for extensions not to appear.

上级 e3e7fb0b
......@@ -137,7 +137,7 @@ export abstract class AbstractRuntimeExtensionsEditor extends EditorPane {
for (let i = 0, len = extensionsDescriptions.length; i < len; i++) {
const extensionDescription = extensionsDescriptions[i];
let profileInfo: IExtensionProfileInformation | null = null;
let extProfileInfo: IExtensionProfileInformation | null = null;
if (profileInfo) {
let extensionSegments = segments[ExtensionIdentifier.toKey(extensionDescription.identifier)] || [];
let extensionTotalTime = 0;
......@@ -146,7 +146,7 @@ export abstract class AbstractRuntimeExtensionsEditor extends EditorPane {
const endTime = extensionSegments[2 * j + 1];
extensionTotalTime += (endTime - startTime);
}
profileInfo = {
extProfileInfo = {
segments: extensionSegments,
totalTime: extensionTotalTime
};
......@@ -157,7 +157,7 @@ export abstract class AbstractRuntimeExtensionsEditor extends EditorPane {
description: extensionDescription,
marketplaceInfo: marketplaceMap[ExtensionIdentifier.toKey(extensionDescription.identifier)],
status: statusMap[extensionDescription.identifier.value],
profileInfo: profileInfo || undefined,
profileInfo: extProfileInfo || undefined,
unresponsiveProfile: this._getUnresponsiveProfile(extensionDescription.identifier)
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册