Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
ba324c4f
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,发现更多精彩内容 >>
提交
ba324c4f
编写于
11月 29, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve profiling animation, open editor when done
上级
800b0217
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
15 deletion
+21
-15
src/vs/workbench/parts/extensions/electron-browser/media/runtimeExtensionsEditor.css
...nsions/electron-browser/media/runtimeExtensionsEditor.css
+14
-10
src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts
...ts/extensions/electron-browser/runtimeExtensionsEditor.ts
+7
-5
未找到文件。
src/vs/workbench/parts/extensions/electron-browser/media/runtimeExtensionsEditor.css
浏览文件 @
ba324c4f
...
...
@@ -68,6 +68,8 @@
.vs-dark
.monaco-action-bar
.extension-host-profile-stop
,
.hc-black
.monaco-action-bar
.extension-host-profile-stop
{
background
:
url('profile-stop-inverse.svg')
center
center
no-repeat
;
animation
:
fade
1000ms
infinite
;
-webkit-animation
:
fade
1000ms
infinite
;
}
.runtime-extensions-editor
.monaco-action-bar
{
...
...
@@ -88,20 +90,22 @@
background
:
url('profile-stop.svg')
no-repeat
;
display
:
inline-block
;
padding-right
:
2px
;
padding-bottom
:
2px
;
width
:
16px
;
height
:
16px
;
vertical-align
:
middle
;
animation
:
blink
1s
step-start
0
s
infinite
;
-webkit-animation
:
blink
1s
step-start
0
s
infinite
;
animation
:
fade
1000m
s
infinite
;
-webkit-animation
:
fade
1000m
s
infinite
;
}
@keyframes
blink
{
50
%
{
opacity
:
0.0
;
}
@keyframes
fade
{
from
{
opacity
:
1.0
;
}
50
%
{
opacity
:
0.5
;
}
to
{
opacity
:
1.0
;
}
}
@-webkit-keyframes
blink
{
50
%
{
opacity
:
0.0
;
}
@-webkit-keyframes
fade
{
from
{
opacity
:
1.0
;
}
50
%
{
opacity
:
0.5
;
}
to
{
opacity
:
1.0
;
}
}
\ No newline at end of file
src/vs/workbench/parts/extensions/electron-browser/runtimeExtensionsEditor.ts
浏览文件 @
ba324c4f
...
...
@@ -86,6 +86,7 @@ export class RuntimeExtensionsEditor extends BaseEditor {
@
IContextMenuService
private
readonly
_contextMenuService
:
IContextMenuService
,
@
IWindowService
private
readonly
_windowService
:
IWindowService
,
@
IEnvironmentService
private
readonly
_environmentService
:
IEnvironmentService
,
@
IInstantiationService
private
readonly
_instantiationService
:
IInstantiationService
,
)
{
super
(
RuntimeExtensionsEditor
.
ID
,
telemetryService
,
themeService
);
...
...
@@ -419,7 +420,7 @@ export class RuntimeExtensionsEditor extends BaseEditor {
@
memoize
private
get
extensionHostProfileAction
():
IAction
{
return
new
ExtensionHostProfileAction
(
ExtensionHostProfileAction
.
LABEL_START
,
ExtensionHostProfileAction
.
ID
,
this
,
this
.
_extensionService
);
return
this
.
_instantiationService
.
createInstance
(
ExtensionHostProfileAction
,
ExtensionHostProfileAction
.
LABEL_START
,
ExtensionHostProfileAction
.
ID
,
this
);
}
public
layout
(
dimension
:
Dimension
):
void
{
...
...
@@ -538,6 +539,8 @@ class ExtensionHostProfileAction extends Action {
id
:
string
=
ExtensionHostProfileAction
.
ID
,
label
:
string
=
ExtensionHostProfileAction
.
LABEL_START
,
private
readonly
_parentEditor
:
RuntimeExtensionsEditor
,
@
IExtensionService
private
readonly
_extensionService
:
IExtensionService
,
@
IWorkbenchEditorService
private
readonly
_editorService
:
IWorkbenchEditorService
,
@
IInstantiationService
private
readonly
_instantiationService
:
IInstantiationService
,
)
{
super
(
id
,
label
,
ExtensionHostProfileAction
.
START_CSS_CLASS
);
this
.
_profileSession
=
null
;
...
...
@@ -550,6 +553,7 @@ class ExtensionHostProfileAction extends Action {
this
.
label
=
ExtensionHostProfileAction
.
LABEL_STOP
;
ProfileExtHostStatusbarItem
.
instance
.
show
(()
=>
{
this
.
run
();
this
.
_editorService
.
openEditor
(
this
.
_instantiationService
.
createInstance
(
RuntimeExtensionsInput
));
});
}
else
{
this
.
class
=
ExtensionHostProfileAction
.
START_CSS_CLASS
;
...
...
@@ -603,7 +607,6 @@ export class ProfileExtHostStatusbarItem implements IStatusbarItem {
public
static
instance
:
ProfileExtHostStatusbarItem
;
private
toDispose
:
IDisposable
[];
private
container
:
HTMLElement
;
private
statusBarItem
:
HTMLElement
;
private
label
:
HTMLElement
;
private
timeStarted
:
number
;
...
...
@@ -635,9 +638,8 @@ export class ProfileExtHostStatusbarItem implements IStatusbarItem {
}
public
render
(
container
:
HTMLElement
):
IDisposable
{
this
.
container
=
container
;
if
(
!
this
.
statusBarItem
&&
this
.
container
)
{
this
.
statusBarItem
=
append
(
this
.
container
,
$
(
'
.profileExtHost-statusbar-item
'
));
if
(
!
this
.
statusBarItem
&&
container
)
{
this
.
statusBarItem
=
append
(
container
,
$
(
'
.profileExtHost-statusbar-item
'
));
this
.
toDispose
.
push
(
addDisposableListener
(
this
.
statusBarItem
,
'
click
'
,
()
=>
{
if
(
this
.
clickHandler
)
{
this
.
clickHandler
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录