Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c0f57381
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,发现更多精彩内容 >>
提交
c0f57381
编写于
2月 11, 2016
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: remove badges
上级
710b5a1d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
66 deletion
+0
-66
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
...orkbench/parts/debug/browser/media/debug.contribution.css
+0
-24
src/vs/workbench/parts/debug/electron-browser/debug.contribution.ts
...kbench/parts/debug/electron-browser/debug.contribution.ts
+0
-42
未找到文件。
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
浏览文件 @
c0f57381
...
...
@@ -9,30 +9,6 @@
background-image
:
url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojRjZGNkY2O30gLmljb24td2hpdGV7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10c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wLTEwLTQuNDg2LTEwLTEweiIvPjwvZz48L3N2Zz4=')
;
}
.debug-viewlet-paused-label
>
.badge-content
{
background-color
:
#007ACC
;
}
.debug-viewlet-paused-label
>
.badge-content
:before
{
border
:
3px
solid
white
;
border-top
:
none
;
border-bottom
:
none
;
content
:
''
;
display
:
block
;
position
:
absolute
;
top
:
5px
;
left
:
5px
;
width
:
2px
;
height
:
8px
;
}
.debug-viewlet-running-label
>
.badge-content
{
background-color
:
#007ACC
;
background-image
:
url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMiAyIDE0IDE0IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDIgMiAxNCAxNCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTkgMTZjLTMuODYgMC03LTMuMTQtNy03czMuMTQtNyA3LTdjMy44NTkgMCA3IDMuMTQxIDcgN3MtMy4xNDEgNy03IDd6bTAtMTIuNmMtMy4wODggMC01LjYgMi41MTMtNS42IDUuNnMyLjUxMiA1LjYgNS42IDUuNiA1LjYtMi41MTIgNS42LTUuNi0yLjUxMi01LjYtNS42LTUuNnptMy44NiA3LjFsLTMuMTYtMS44OTZ2LTMuODA0aC0xLjR2NC41OTZsMy44NCAyLjMwNS43Mi0xLjIwMXoiLz48L3N2Zz4=")
;
background-position
:
center
center
;
background-repeat
:
no-repeat
;
}
.monaco-editor
.debug-top-stack-frame-line
{
background
:
rgba
(
255
,
255
,
0
,
0.35
);
}
...
...
src/vs/workbench/parts/debug/electron-browser/debug.contribution.ts
浏览文件 @
c0f57381
...
...
@@ -6,7 +6,6 @@
import
'
vs/css!../browser/media/debug.contribution
'
;
import
'
vs/css!../browser/media/debugHover
'
;
import
nls
=
require
(
'
vs/nls
'
);
import
lifecycle
=
require
(
'
vs/base/common/lifecycle
'
);
import
{
KeyMod
,
KeyCode
}
from
'
vs/base/common/keyCodes
'
;
import
{
CommonEditorRegistry
,
ContextKey
,
EditorActionDescriptor
}
from
'
vs/editor/common/editorCommonExtensions
'
;
import
{
SyncActionDescriptor
}
from
'
vs/platform/actions/common/actions
'
;
...
...
@@ -26,7 +25,6 @@ import debugwidget = require('vs/workbench/parts/debug/browser/debugActionsWidge
import
service
=
require
(
'
vs/workbench/parts/debug/electron-browser/debugService
'
);
import
{
DebugEditorContribution
}
from
'
vs/workbench/parts/debug/browser/debugEditorContribution
'
;
import
{
IViewletService
}
from
'
vs/workbench/services/viewlet/common/viewletService
'
;
import
{
IActivityService
,
IconBadge
,
NumberBadge
,
ProgressBadge
}
from
'
vs/workbench/services/activity/common/activityService
'
;
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
IDebugService
=
debug
.
IDebugService
;
...
...
@@ -45,41 +43,6 @@ class OpenDebugViewletAction extends viewlet.ToggleViewletAction {
}
}
class
StatusUpdater
implements
wbext
.
IWorkbenchContribution
{
static
ID
=
'
Monaco.IDE.UI.Viewlets.DebugViewlet.Workbench.StatusUpdater
'
;
private
toDispose
:
lifecycle
.
IDisposable
[];
private
pausedBadge
:
ProgressBadge
;
private
runningBadge
:
IconBadge
;
constructor
(
@
IActivityService
private
activityService
:
IActivityService
,
@
IDebugService
private
debugService
:
IDebugService
)
{
this
.
pausedBadge
=
new
IconBadge
(()
=>
{
return
nls
.
localize
(
'
debugPaused
'
,
"
Paused
"
);
});
this
.
runningBadge
=
new
ProgressBadge
(()
=>
{
return
nls
.
localize
(
'
debugRunning
'
,
"
Running
"
);
});
this
.
toDispose
=
[
this
.
debugService
.
addListener2
(
debug
.
ServiceEvents
.
STATE_CHANGED
,
()
=>
this
.
onDebugServiceStateChange
())];
}
private
onDebugServiceStateChange
():
void
{
if
(
this
.
debugService
.
getState
()
===
debug
.
State
.
Stopped
)
{
this
.
activityService
.
showActivity
(
debug
.
VIEWLET_ID
,
this
.
pausedBadge
,
'
debug-viewlet-paused-label
'
);
}
else
if
(
this
.
debugService
.
getState
()
===
debug
.
State
.
Running
)
{
this
.
activityService
.
showActivity
(
debug
.
VIEWLET_ID
,
this
.
runningBadge
,
'
debug-viewlet-running-label
'
);
}
else
{
this
.
activityService
.
clearActivity
(
debug
.
VIEWLET_ID
);
}
}
public
getId
():
string
{
return
StatusUpdater
.
ID
;
}
public
dispose
():
void
{
this
.
toDispose
=
lifecycle
.
disposeAll
(
this
.
toDispose
);
}
}
EditorBrowserRegistry
.
registerEditorContribution
(
DebugEditorContribution
);
CommonEditorRegistry
.
registerEditorAction
(
new
EditorActionDescriptor
(
dbgactions
.
ToggleBreakpointAction
,
dbgactions
.
ToggleBreakpointAction
.
ID
,
nls
.
localize
(
'
toggleBreakpointAction
'
,
"
Debug: Toggle Breakpoint
"
),
{
context
:
ContextKey
.
EditorTextFocus
,
...
...
@@ -138,8 +101,3 @@ registry.registerWorkbenchAction(new SyncActionDescriptor(dbgactions.ReapplyBrea
// register service
registerSingleton
(
IDebugService
,
service
.
DebugService
);
// Register StatusUpdater
(
<
wbext
.
IWorkbenchContributionsRegistry
>
platform
.
Registry
.
as
(
wbext
.
Extensions
.
Workbench
)).
registerWorkbenchContribution
(
StatusUpdater
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录