Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d5b2a5af
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d5b2a5af
编写于
11月 29, 2017
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
activation times format
上级
373d5a05
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
8 addition
and
19 deletion
+8
-19
src/vs/workbench/parts/extensions/electron-browser/media/runtimeExtensionsEditor.css
...nsions/electron-browser/media/runtimeExtensionsEditor.css
+1
-4
src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts
...ts/extensions/electron-browser/runtimeExtensionsEditor.ts
+7
-15
未找到文件。
src/vs/workbench/parts/extensions/electron-browser/media/runtimeExtensionsEditor.css
浏览文件 @
d5b2a5af
...
...
@@ -24,16 +24,13 @@
.runtime-extensions-editor
.extension
.time
{
margin
:
auto
;
padding
:
0
4px
;
text-align
:
right
;
}
.runtime-extensions-editor
.extension
.desc
.time-label
,
.runtime-extensions-editor
.extension
.desc
.msg-label
{
padding-left
:
4px
;
}
.runtime-extensions-editor
.extension
.profile
{
margin
:
auto
;
}
.runtime-extensions-editor
.extension
.profile-timeline
{
width
:
100px
;
...
...
src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts
浏览文件 @
d5b2a5af
...
...
@@ -219,10 +219,7 @@ export class RuntimeExtensionsEditor extends BaseEditor {
icon
:
HTMLImageElement
;
name
:
HTMLElement
;
activationTimeContainer
:
HTMLElement
;
activationTimeLabel
:
HTMLElement
;
profileContainer
:
HTMLElement
;
activationTime
:
HTMLElement
;
profileTime
:
HTMLElement
;
profileTimeline
:
HTMLElement
;
...
...
@@ -248,11 +245,9 @@ export class RuntimeExtensionsEditor extends BaseEditor {
const
msgIcon
=
append
(
msgContainer
,
$
(
'
.
'
));
const
msgLabel
=
append
(
msgContainer
,
$
(
'
span.msg-label
'
));
const
activationTimeContainer
=
append
(
element
,
$
(
'
div.time
'
));
const
activationTimeLabel
=
append
(
activationTimeContainer
,
$
(
'
span.time-label
'
));
const
profileContainer
=
append
(
element
,
$
(
'
div.profile
'
));
const
profileTime
=
append
(
profileContainer
,
$
(
'
span.time
'
));
const
timeContainer
=
append
(
element
,
$
(
'
.time
'
));
const
activationTime
=
append
(
timeContainer
,
$
(
'
div.activation-time
'
));
const
profileTime
=
append
(
timeContainer
,
$
(
'
div.profile-time
'
));
const
profileTimeline
=
append
(
element
,
$
(
'
div.profile-timeline
'
));
...
...
@@ -270,9 +265,7 @@ export class RuntimeExtensionsEditor extends BaseEditor {
icon
,
name
,
actionbar
,
activationTimeContainer
,
activationTimeLabel
,
profileContainer
,
activationTime
,
profileTime
,
profileTimeline
,
msgIcon
,
...
...
@@ -297,7 +290,7 @@ export class RuntimeExtensionsEditor extends BaseEditor {
const
activationTimes
=
element
.
status
.
activationTimes
;
let
syncTime
=
activationTimes
.
codeLoadingTime
+
activationTimes
.
activateCallTime
;
data
.
activationTime
Label
.
textContent
=
activationTimes
.
startup
?
`Startup Activation:
${
syncTime
}
ms`
:
`Activation:
${
syncTime
}
ms`
;
data
.
activationTime
.
textContent
=
activationTimes
.
startup
?
`Startup Activation:
${
syncTime
}
ms`
:
`Activation:
${
syncTime
}
ms`
;
data
.
actionbar
.
context
=
element
;
let
title
:
string
;
...
...
@@ -316,7 +309,7 @@ export class RuntimeExtensionsEditor extends BaseEditor {
}
else
{
title
=
nls
.
localize
(
'
workspaceGenericActivation
'
,
"
Activated on {0}
"
,
activationTimes
.
activationEvent
);
}
data
.
activationTime
Container
.
title
=
title
;
data
.
activationTime
.
title
=
title
;
if
(
element
.
status
.
messages
&&
element
.
status
.
messages
.
length
>
0
)
{
data
.
msgIcon
.
className
=
'
octicon octicon-alert
'
;
...
...
@@ -351,7 +344,6 @@ export class RuntimeExtensionsEditor extends BaseEditor {
}
else
{
data
.
profileTime
.
textContent
=
''
;
data
.
profileTimeline
.
innerHTML
=
''
;
data
.
profileTimeline
.
style
.
display
=
'
none
'
;
}
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录