Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
efd5f7a5
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,发现更多精彩内容 >>
提交
efd5f7a5
编写于
2月 26, 2016
作者:
R
Rob Lourens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add stepBack button to DebugActionsWidget -
Without checking Capabilities
上级
9b767f94
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
56 addition
and
0 deletion
+56
-0
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
+1
-0
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
...orkbench/parts/debug/browser/media/debug.contribution.css
+15
-0
src/vs/workbench/parts/debug/common/debug.ts
src/vs/workbench/parts/debug/common/debug.ts
+1
-0
src/vs/workbench/parts/debug/electron-browser/debug.contribution.ts
...kbench/parts/debug/electron-browser/debug.contribution.ts
+1
-0
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
...vs/workbench/parts/debug/electron-browser/debugActions.ts
+20
-0
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+10
-0
src/vs/workbench/parts/debug/node/rawDebugSession.ts
src/vs/workbench/parts/debug/node/rawDebugSession.ts
+4
-0
src/vs/workbench/parts/debug/test/common/mockDebugService.ts
src/vs/workbench/parts/debug/test/common/mockDebugService.ts
+4
-0
未找到文件。
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
浏览文件 @
efd5f7a5
...
...
@@ -112,6 +112,7 @@ export class DebugActionsWidget implements wbext.IWorkbenchContribution {
instantiationService
.
createInstance
(
dbgactions
.
StepOverDebugAction
,
dbgactions
.
StepOverDebugAction
.
ID
,
dbgactions
.
StepOverDebugAction
.
LABEL
),
instantiationService
.
createInstance
(
dbgactions
.
StepIntoDebugAction
,
dbgactions
.
StepIntoDebugAction
.
ID
,
dbgactions
.
StepIntoDebugAction
.
LABEL
),
instantiationService
.
createInstance
(
dbgactions
.
StepOutDebugAction
,
dbgactions
.
StepOutDebugAction
.
ID
,
dbgactions
.
StepOutDebugAction
.
LABEL
),
instantiationService
.
createInstance
(
dbgactions
.
StepBackDebugAction
,
dbgactions
.
StepBackDebugAction
.
ID
,
dbgactions
.
StepBackDebugAction
.
LABEL
),
instantiationService
.
createInstance
(
dbgactions
.
RestartDebugAction
,
dbgactions
.
RestartDebugAction
.
ID
,
dbgactions
.
RestartDebugAction
.
LABEL
),
instantiationService
.
createInstance
(
dbgactions
.
StopDebugAction
,
dbgactions
.
StopDebugAction
.
ID
,
dbgactions
.
StopDebugAction
.
LABEL
)
];
...
...
src/vs/workbench/parts/debug/browser/media/debug.contribution.css
浏览文件 @
efd5f7a5
...
...
@@ -86,6 +86,11 @@
background
:
url('step-out.svg')
center
center
no-repeat
;
}
.monaco-workbench
.debug-action.step-back
{
background
:
url('step-over.svg')
center
center
no-repeat
;
transform
:
scaleX
(
-1
);
}
.monaco-workbench
.debug-action.continue
{
background
:
url('continue.svg')
center
center
no-repeat
;
}
...
...
@@ -280,6 +285,11 @@
background
:
url('step-out-inverse.svg')
center
center
no-repeat
;
}
.vs-dark
.monaco-workbench
.debug-action.step-back
{
background
:
url('step-over-inverse.svg')
center
center
no-repeat
;
transform
:
scaleX
(
-1
);
}
.vs-dark
.monaco-workbench
.debug-action.continue
{
background
:
url('continue-inverse.svg')
center
center
no-repeat
;
}
...
...
@@ -340,6 +350,11 @@
background
:
url('step-out-inverse.svg')
center
center
no-repeat
;
}
.hc-black
.monaco-workbench
.debug-action.step-back
{
background
:
url('step-over-inverse.svg')
center
center
no-repeat
;
transform
:
scaleX
(
-1
);
}
.hc-black
.monaco-workbench
.debug-action.continue
{
background
:
url('continue-inverse.svg')
center
center
no-repeat
;
}
...
...
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
efd5f7a5
...
...
@@ -411,6 +411,7 @@ export interface IDebugService {
next
(
threadId
:
number
):
TPromise
<
void
>
;
stepIn
(
threadId
:
number
):
TPromise
<
void
>
;
stepOut
(
threadId
:
number
):
TPromise
<
void
>
;
stepBack
(
threadId
:
number
):
TPromise
<
void
>
;
continue
(
threadId
:
number
):
TPromise
<
void
>
;
pause
(
threadId
:
number
):
TPromise
<
any
>
;
}
...
...
src/vs/workbench/parts/debug/electron-browser/debug.contribution.ts
浏览文件 @
efd5f7a5
...
...
@@ -105,6 +105,7 @@ registry.registerWorkbenchAction(new SyncActionDescriptor(
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
StepOverDebugAction
,
dbgactions
.
StepOverDebugAction
.
ID
,
dbgactions
.
StepOverDebugAction
.
LABEL
,
{
primary
:
KeyCode
.
F10
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
)),
'
Debug: Step Over
'
,
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
StepIntoDebugAction
,
dbgactions
.
StepIntoDebugAction
.
ID
,
dbgactions
.
StepIntoDebugAction
.
LABEL
,
{
primary
:
KeyCode
.
F11
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
),
KeybindingsRegistry
.
WEIGHT
.
workbenchContrib
(
1
)),
'
Debug: Step Into
'
,
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
StepOutDebugAction
,
dbgactions
.
StepOutDebugAction
.
ID
,
dbgactions
.
StepOutDebugAction
.
LABEL
,
{
primary
:
KeyMod
.
Shift
|
KeyCode
.
F11
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
)),
'
Debug: Step Out
'
,
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
StepBackDebugAction
,
dbgactions
.
StepBackDebugAction
.
ID
,
dbgactions
.
StepBackDebugAction
.
LABEL
,
{
primary
:
KeyMod
.
Shift
|
KeyCode
.
F10
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
)),
'
Debug: Step Back
'
,
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
RestartDebugAction
,
dbgactions
.
RestartDebugAction
.
ID
,
dbgactions
.
RestartDebugAction
.
LABEL
,
{
primary
:
KeyMod
.
Shift
|
KeyMod
.
CtrlCmd
|
KeyCode
.
F5
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
)),
'
Debug: Restart
'
,
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
StopDebugAction
,
dbgactions
.
StopDebugAction
.
ID
,
dbgactions
.
StopDebugAction
.
LABEL
,
{
primary
:
KeyMod
.
Shift
|
KeyCode
.
F5
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
)),
'
Debug: Stop
'
,
debugCategory
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
dbgactions
.
ContinueAction
,
dbgactions
.
ContinueAction
.
ID
,
dbgactions
.
ContinueAction
.
LABEL
,
{
primary
:
KeyCode
.
F5
},
KbExpr
.
has
(
debug
.
CONTEXT_IN_DEBUG_MODE
)),
'
Debug: Continue
'
,
debugCategory
);
...
...
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
浏览文件 @
efd5f7a5
...
...
@@ -218,6 +218,26 @@ export class StepOutDebugAction extends AbstractDebugAction {
}
}
export
class
StepBackDebugAction
extends
AbstractDebugAction
{
static
ID
=
'
workbench.action.debug.stepBack
'
;
static
LABEL
=
nls
.
localize
(
'
stepBackDebug
'
,
"
Step Back
"
);
constructor
(
id
:
string
,
label
:
string
,
@
IDebugService
debugService
:
IDebugService
,
@
IKeybindingService
keybindingService
:
IKeybindingService
)
{
super
(
id
,
label
,
'
debug-action step-back
'
,
debugService
,
keybindingService
);
}
public
run
(
thread
:
debug
.
IThread
):
TPromise
<
any
>
{
const
threadId
=
thread
&&
thread
instanceof
model
.
Thread
?
thread
.
threadId
:
this
.
debugService
.
getViewModel
().
getFocusedThreadId
();
return
this
.
debugService
.
stepBack
(
threadId
);
}
protected
isEnabled
(
state
:
debug
.
State
):
boolean
{
return
super
.
isEnabled
(
state
)
&&
state
===
debug
.
State
.
Stopped
;
}
}
export
class
StopDebugAction
extends
AbstractDebugAction
{
static
ID
=
'
workbench.action.debug.stop
'
;
static
LABEL
=
nls
.
localize
(
'
stopDebug
'
,
"
Stop
"
);
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
efd5f7a5
...
...
@@ -872,6 +872,16 @@ export class DebugService implements debug.IDebugService {
});
}
public
stepBack
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
!
this
.
session
)
{
return
TPromise
.
as
(
null
);
}
return
this
.
session
.
stepBack
({
threadId
}).
then
(()
=>
{
this
.
lazyTransitionToRunningState
(
threadId
);
});
}
public
continue
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
!
this
.
session
)
{
return
TPromise
.
as
(
null
);
...
...
src/vs/workbench/parts/debug/node/rawDebugSession.ts
浏览文件 @
efd5f7a5
...
...
@@ -234,6 +234,10 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
return
this
.
send
(
'
stepOut
'
,
args
);
}
public
stepBack
(
args
:
DebugProtocol
.
StepBackArguments
):
TPromise
<
DebugProtocol
.
StepBackResponse
>
{
return
this
.
send
(
'
stepBack
'
,
args
);
}
public
continue
(
args
:
DebugProtocol
.
ContinueArguments
):
TPromise
<
DebugProtocol
.
ContinueResponse
>
{
return
this
.
send
(
'
continue
'
,
args
);
}
...
...
src/vs/workbench/parts/debug/test/common/mockDebugService.ts
浏览文件 @
efd5f7a5
...
...
@@ -115,6 +115,10 @@ export class MockDebugService implements debug.IDebugService {
return
TPromise
.
as
(
null
);
}
public
stepBack
(
threadId
:
number
):
TPromise
<
void
>
{
return
TPromise
.
as
(
null
);
}
public
continue
(
threadId
:
number
):
TPromise
<
void
>
{
return
TPromise
.
as
(
null
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录