Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
49403bd0
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,发现更多精彩内容 >>
提交
49403bd0
编写于
2月 11, 2016
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: show notification in debug console icon when there is unseen output
fixes #2280
上级
de460f89
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
65 addition
and
25 deletion
+65
-25
src/vs/workbench/common/events.ts
src/vs/workbench/common/events.ts
+1
-1
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
...orkbench/parts/debug/browser/media/debug.contribution.css
+0
-20
src/vs/workbench/parts/debug/browser/media/debugViewlet.css
src/vs/workbench/parts/debug/browser/media/debugViewlet.css
+40
-0
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
...vs/workbench/parts/debug/electron-browser/debugActions.ts
+24
-4
未找到文件。
src/vs/workbench/common/events.ts
浏览文件 @
49403bd0
...
...
@@ -98,7 +98,7 @@ export class EventType {
static
COMPOSITE_OPENING
=
'
compositeOpening
'
;
/**
* Event type for when a
viewlet
is opened.
* Event type for when a
composite
is opened.
*/
static
COMPOSITE_OPENED
=
'
compositeOpened
'
;
...
...
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
浏览文件 @
49403bd0
...
...
@@ -75,14 +75,6 @@
/* Actionbar actions */
.monaco-workbench
.debug-action.configure
{
background
:
url('configure.svg')
center
center
no-repeat
;
}
.monaco-workbench
.debug-action.toggle-repl
{
background
:
url('repl.svg')
center
center
no-repeat
;
}
.monaco-workbench
.debug-action.step-over
{
background
:
url('step-over.svg')
center
center
no-repeat
;
}
...
...
@@ -274,14 +266,6 @@
background
:
url('stackframe-and-breakpoint-dark.svg')
center
center
no-repeat
;
}
.monaco-workbench.vs-dark
.debug-action.configure
{
background
:
url('configure-inverse.svg')
center
center
no-repeat
;
}
.monaco-workbench.vs-dark
.debug-action.toggle-repl
{
background
:
url('repl-inverse.svg')
center
center
no-repeat
;
}
.monaco-workbench.vs-dark
.debug-action.step-over
{
background
:
url('step-over-inverse.svg')
center
center
no-repeat
;
}
...
...
@@ -345,10 +329,6 @@
width
:
16px
;
}
.monaco-workbench.hc-black
.debug-action.toggle-repl
:before
{
content
:
url('repl-inverse.svg')
;
}
.monaco-workbench.hc-black
.debug-actions-widget
{
background-color
:
#333
;
box-shadow
:
0
2px
8px
#000
;
...
...
src/vs/workbench/parts/debug/browser/media/debugViewlet.css
浏览文件 @
49403bd0
...
...
@@ -9,6 +9,46 @@
height
:
100%
;
}
/* Actionbar actions */
.monaco-workbench
.debug-action.configure
{
background
:
url('configure.svg')
center
center
no-repeat
;
}
.monaco-workbench
.debug-action.toggle-repl
{
background
:
url('repl.svg')
center
center
no-repeat
;
}
.monaco-workbench
.debug-action.toggle-repl.notification
:before
{
content
:
''
;
width
:
6px
;
height
:
6px
;
background-color
:
#CC6633
;
position
:
absolute
;
top
:
11px
;
right
:
5px
;
border-radius
:
10px
;
border
:
1px
solid
white
;
}
.monaco-workbench.vs-dark
.debug-action.configure
{
background
:
url('configure-inverse.svg')
center
center
no-repeat
;
}
.monaco-workbench.vs-dark
.debug-action.toggle-repl
{
background
:
url('repl-inverse.svg')
center
center
no-repeat
;
}
.monaco-workbench.hc-black
.debug-action.configure
{
background
:
url('configure-inverse.svg')
center
center
no-repeat
;
}
.monaco-workbench.hc-black
.debug-action.toggle-repl
:before
{
content
:
url('repl-inverse.svg')
;
}
/* Debug viewlet trees */
.debug-viewlet
.monaco-tree
.monaco-tree-row
>
.content
{
line-height
:
22px
;
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
浏览文件 @
49403bd0
...
...
@@ -10,6 +10,8 @@ import { TPromise } from 'vs/base/common/winjs.base';
import
editorCommon
=
require
(
'
vs/editor/common/editorCommon
'
);
import
editorbrowser
=
require
(
'
vs/editor/browser/editorBrowser
'
);
import
{
EditorAction
,
Behaviour
}
from
'
vs/editor/common/editorAction
'
;
import
{
IEventService
}
from
'
vs/platform/event/common/event
'
;
import
{
EventType
,
CompositeEvent
}
from
'
vs/workbench/common/events
'
;
import
debug
=
require
(
'
vs/workbench/parts/debug/common/debug
'
);
import
model
=
require
(
'
vs/workbench/parts/debug/common/debugModel
'
);
import
{
IPartService
}
from
'
vs/workbench/services/part/common/partService
'
;
...
...
@@ -668,20 +670,38 @@ export class ToggleReplAction extends AbstractDebugAction {
@
IDebugService
debugService
:
IDebugService
,
@
IPartService
private
partService
:
IPartService
,
@
IPanelService
private
panelService
:
IPanelService
,
@
IKeybindingService
keybindingService
:
IKeybindingService
@
IKeybindingService
keybindingService
:
IKeybindingService
,
@
IEventService
private
eventService
:
IEventService
)
{
super
(
id
,
label
,
'
debug-action toggle-repl
'
,
debugService
,
keybindingService
);
this
.
enabled
=
this
.
debugService
.
getState
()
!==
debug
.
State
.
Disabled
;
this
.
registerListeners
();
}
public
run
():
TPromise
<
any
>
{
const
panel
=
this
.
panelService
.
getActivePanel
();
if
(
panel
&&
panel
.
getId
()
===
debug
.
REPL_ID
)
{
if
(
this
.
isReplVisible
())
{
this
.
partService
.
setPanelHidden
(
true
);
return
TPromise
.
as
(
null
);
}
return
this
.
debugService
.
revealRepl
();
}
private
registerListeners
():
void
{
this
.
toDispose
.
push
(
this
.
debugService
.
getModel
().
addListener2
(
debug
.
ModelEvents
.
REPL_ELEMENTS_UPDATED
,
()
=>
{
if
(
!
this
.
isReplVisible
())
{
this
.
class
=
'
debug-action toggle-repl notification
'
;
}
}));
this
.
toDispose
.
push
(
this
.
eventService
.
addListener2
(
EventType
.
COMPOSITE_OPENED
,
(
e
:
CompositeEvent
)
=>
{
if
(
e
.
compositeId
===
debug
.
REPL_ID
)
{
this
.
class
=
'
debug-action toggle-repl
'
;
}
}));
}
private
isReplVisible
():
boolean
{
const
panel
=
this
.
panelService
.
getActivePanel
();
return
panel
&&
panel
.
getId
()
===
debug
.
REPL_ID
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录