Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
4808112e
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4808112e
编写于
1月 18, 2016
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: toggle repl action
上级
398a40db
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
24 addition
and
10 deletion
+24
-10
src/vs/workbench/parts/debug/browser/debugViewlet.ts
src/vs/workbench/parts/debug/browser/debugViewlet.ts
+1
-1
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
...orkbench/parts/debug/browser/media/debug.contribution.css
+3
-3
src/vs/workbench/parts/debug/electron-browser/debug.contribution.ts
...kbench/parts/debug/electron-browser/debug.contribution.ts
+1
-1
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
...vs/workbench/parts/debug/electron-browser/debugActions.ts
+19
-5
未找到文件。
src/vs/workbench/parts/debug/browser/debugViewlet.ts
浏览文件 @
4808112e
...
...
@@ -482,7 +482,7 @@ export class DebugViewlet extends viewlet.Viewlet {
this
.
instantiationService
.
createInstance
(
dbgactions
.
StartDebugAction
,
dbgactions
.
StartDebugAction
.
ID
,
dbgactions
.
StartDebugAction
.
LABEL
),
this
.
instantiationService
.
createInstance
(
dbgactions
.
SelectConfigAction
,
dbgactions
.
SelectConfigAction
.
ID
,
dbgactions
.
SelectConfigAction
.
LABEL
),
this
.
instantiationService
.
createInstance
(
dbgactions
.
ConfigureAction
,
dbgactions
.
ConfigureAction
.
ID
,
dbgactions
.
ConfigureAction
.
LABEL
),
this
.
instantiationService
.
createInstance
(
dbgactions
.
OpenReplAction
,
dbgactions
.
OpenReplAction
.
ID
,
dbgactions
.
Open
ReplAction
.
LABEL
)
this
.
instantiationService
.
createInstance
(
dbgactions
.
ToggleReplAction
,
dbgactions
.
ToggleReplAction
.
ID
,
dbgactions
.
Toggle
ReplAction
.
LABEL
)
];
this
.
actions
.
forEach
(
a
=>
{
...
...
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
浏览文件 @
4808112e
...
...
@@ -72,7 +72,7 @@
background
:
url('configure.svg')
center
center
no-repeat
;
}
.monaco-workbench
.debug-action.
open
-repl
{
.monaco-workbench
.debug-action.
toggle
-repl
{
background
:
url('repl.svg')
center
center
no-repeat
;
}
...
...
@@ -269,7 +269,7 @@
background
:
url('configure-inverse.svg')
center
center
no-repeat
;
}
.monaco-workbench.vs-dark
.debug-action.
open
-repl
{
.monaco-workbench.vs-dark
.debug-action.
toggle
-repl
{
background
:
url('repl-inverse.svg')
center
center
no-repeat
;
}
...
...
@@ -336,7 +336,7 @@
width
:
16px
;
}
.monaco-workbench.hc-black
.debug-action.
open
-repl
:before
{
.monaco-workbench.hc-black
.debug-action.
toggle
-repl
:before
{
content
:
url('repl-inverse.svg')
;
}
...
...
src/vs/workbench/parts/debug/electron-browser/debug.contribution.ts
浏览文件 @
4808112e
...
...
@@ -99,7 +99,7 @@ registry.registerWorkbenchAction(new SyncActionDescriptor(dbgactions.StopDebugAc
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
ContinueAction
,
dbgactions
.
ContinueAction
.
ID
,
dbgactions
.
ContinueAction
.
LABEL
,
{
primary
:
KeyCode
.
F5
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
)),
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
PauseAction
,
dbgactions
.
PauseAction
.
ID
,
dbgactions
.
PauseAction
.
LABEL
),
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
ConfigureAction
,
dbgactions
.
ConfigureAction
.
ID
,
dbgactions
.
ConfigureAction
.
LABEL
),
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
OpenReplAction
,
dbgactions
.
OpenReplAction
.
ID
,
dbgactions
.
Open
ReplAction
.
LABEL
),
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
ToggleReplAction
,
dbgactions
.
ToggleReplAction
.
ID
,
dbgactions
.
Toggle
ReplAction
.
LABEL
),
debugCategory
);
// register service
registerSingleton
(
IDebugService
,
service
.
DebugService
);
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
浏览文件 @
4808112e
...
...
@@ -15,6 +15,9 @@ import platform = require('vs/platform/platform');
import
wbaregistry
=
require
(
'
vs/workbench/common/actionRegistry
'
);
import
debug
=
require
(
'
vs/workbench/parts/debug/common/debug
'
);
import
model
=
require
(
'
vs/workbench/parts/debug/common/debugModel
'
);
import
{
Repl
}
from
'
vs/workbench/parts/debug/browser/repl
'
;
import
{
IPartService
}
from
'
vs/workbench/services/part/common/partService
'
;
import
{
IPanelService
}
from
'
vs/workbench/services/panel/common/panelService
'
;
import
{
IViewletService
}
from
'
vs/workbench/services/viewlet/common/viewletService
'
;
import
{
IKeybindingService
}
from
'
vs/platform/keybinding/common/keybindingService
'
;
...
...
@@ -626,16 +629,27 @@ export class RemoveAllWatchExpressionsAction extends AbstractDebugAction {
}
}
export
class
Open
ReplAction
extends
actions
.
Action
{
static
ID
=
'
workbench.debug.action.
open
Repl
'
;
static
LABEL
=
nls
.
localize
(
'
openRepl
'
,
"
Open
Console
"
);
export
class
Toggle
ReplAction
extends
actions
.
Action
{
static
ID
=
'
workbench.debug.action.
toggle
Repl
'
;
static
LABEL
=
nls
.
localize
(
'
toggleRepl
'
,
"
Debug
Console
"
);
constructor
(
id
:
string
,
label
:
string
,
@
IDebugService
private
debugService
:
IDebugService
)
{
super
(
id
,
label
,
'
debug-action open-repl
'
,
true
);
constructor
(
id
:
string
,
label
:
string
,
@
IDebugService
private
debugService
:
IDebugService
,
@
IPartService
private
partService
:
IPartService
,
@
IPanelService
private
panelService
:
IPanelService
)
{
super
(
id
,
label
,
'
debug-action toggle-repl
'
,
true
);
this
.
enabled
=
this
.
debugService
.
getState
()
!==
debug
.
State
.
Disabled
;
}
public
run
():
Promise
{
const
panel
=
this
.
panelService
.
getActivePanel
();
if
(
panel
&&
panel
.
getId
()
===
Repl
.
ID
)
{
this
.
partService
.
setPanelHidden
(
true
);
return
Promise
.
as
(
null
);
}
return
this
.
debugService
.
revealRepl
();
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录