Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
70cba8bd
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,体验更适合开发者的 AI 搜索 >>
提交
70cba8bd
编写于
7月 12, 2016
作者:
A
Andre Weinand
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add 'Restart Frame'; fixes #9145
上级
40602c30
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
49 addition
and
10 deletion
+49
-10
extensions/node-debug/node-debug.azure.json
extensions/node-debug/node-debug.azure.json
+1
-1
src/vs/workbench/parts/debug/browser/debugActions.ts
src/vs/workbench/parts/debug/browser/debugActions.ts
+18
-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/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+8
-0
src/vs/workbench/parts/debug/electron-browser/debugViewer.ts
src/vs/workbench/parts/debug/electron-browser/debugViewer.ts
+13
-9
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
未找到文件。
extensions/node-debug/node-debug.azure.json
浏览文件 @
70cba8bd
{
"account"
:
"monacobuild"
,
"container"
:
"debuggers"
,
"zip"
:
"
e37a047
/node-debug.zip"
,
"zip"
:
"
3030249
/node-debug.zip"
,
"output"
:
""
}
src/vs/workbench/parts/debug/browser/debugActions.ts
浏览文件 @
70cba8bd
...
...
@@ -305,6 +305,24 @@ export class PauseAction extends AbstractDebugAction {
}
}
export
class
RestartFrameAction
extends
AbstractDebugAction
{
static
ID
=
'
workbench.action.debug.restartFrame
'
;
static
LABEL
=
nls
.
localize
(
'
restartFrame
'
,
"
Restart Frame
"
);
constructor
(
id
:
string
,
label
:
string
,
@
IDebugService
debugService
:
IDebugService
,
@
IKeybindingService
keybindingService
:
IKeybindingService
)
{
super
(
id
,
label
,
'
debug-action restart-frame
'
,
debugService
,
keybindingService
);
}
public
run
(
frame
:
debug
.
IStackFrame
):
TPromise
<
any
>
{
const
frameId
=
(
frame
&&
frame
instanceof
model
.
StackFrame
)
?
frame
.
frameId
:
this
.
debugService
.
getViewModel
().
getFocusedStackFrame
().
frameId
;
return
this
.
debugService
.
restartFrame
(
frameId
);
}
}
export
class
RemoveBreakpointAction
extends
AbstractDebugAction
{
static
ID
=
'
workbench.debug.viewlet.action.removeBreakpoint
'
;
static
LABEL
=
nls
.
localize
(
'
removeBreakpoint
'
,
"
Remove Breakpoint
"
);
...
...
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
70cba8bd
...
...
@@ -406,6 +406,7 @@ export interface IDebugService {
stepBack
(
threadId
:
number
):
TPromise
<
void
>
;
continue
(
threadId
:
number
):
TPromise
<
void
>
;
pause
(
threadId
:
number
):
TPromise
<
any
>
;
restartFrame
(
frameId
:
number
):
TPromise
<
any
>
;
}
// Editor interfaces
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
70cba8bd
...
...
@@ -928,6 +928,14 @@ export class DebugService implements debug.IDebugService {
return
this
.
session
.
pause
({
threadId
});
}
public
restartFrame
(
frameId
:
number
):
TPromise
<
any
>
{
if
(
!
this
.
session
)
{
return
TPromise
.
as
(
null
);
}
return
this
.
session
.
restartFrame
({
frameId
});
}
private
lazyTransitionToRunningState
(
threadId
?:
number
):
void
{
let
setNewFocusedStackFrameScheduler
:
RunOnceScheduler
;
const
toDispose
=
this
.
session
.
onDidStop
(
e
=>
{
...
...
src/vs/workbench/parts/debug/electron-browser/debugViewer.ts
浏览文件 @
70cba8bd
...
...
@@ -294,19 +294,23 @@ export class CallStackActionProvider implements renderer.IActionProvider {
}
public
hasSecondaryActions
(
tree
:
tree
.
ITree
,
element
:
any
):
boolean
{
return
element
instanceof
model
.
Thread
;
return
element
instanceof
model
.
Thread
||
element
instanceof
model
.
StackFrame
;
}
public
getSecondaryActions
(
tree
:
tree
.
ITree
,
element
:
any
):
TPromise
<
actions
.
IAction
[]
>
{
const
actions
:
actions
.
Action
[]
=
[];
const
thread
=
<
model
.
Thread
>
element
;
if
(
thread
.
stopped
)
{
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
ContinueAction
,
debugactions
.
ContinueAction
.
ID
,
debugactions
.
ContinueAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
StepOverDebugAction
,
debugactions
.
StepOverDebugAction
.
ID
,
debugactions
.
StepOverDebugAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
StepIntoDebugAction
,
debugactions
.
StepIntoDebugAction
.
ID
,
debugactions
.
StepIntoDebugAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
StepOutDebugAction
,
debugactions
.
StepOutDebugAction
.
ID
,
debugactions
.
StepOutDebugAction
.
LABEL
));
}
else
{
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
PauseAction
,
debugactions
.
PauseAction
.
ID
,
debugactions
.
PauseAction
.
LABEL
));
if
(
element
instanceof
model
.
Thread
)
{
const
thread
=
<
model
.
Thread
>
element
;
if
(
thread
.
stopped
)
{
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
ContinueAction
,
debugactions
.
ContinueAction
.
ID
,
debugactions
.
ContinueAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
StepOverDebugAction
,
debugactions
.
StepOverDebugAction
.
ID
,
debugactions
.
StepOverDebugAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
StepIntoDebugAction
,
debugactions
.
StepIntoDebugAction
.
ID
,
debugactions
.
StepIntoDebugAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
StepOutDebugAction
,
debugactions
.
StepOutDebugAction
.
ID
,
debugactions
.
StepOutDebugAction
.
LABEL
));
}
else
{
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
PauseAction
,
debugactions
.
PauseAction
.
ID
,
debugactions
.
PauseAction
.
LABEL
));
}
}
else
if
(
element
instanceof
model
.
StackFrame
)
{
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
RestartFrameAction
,
debugactions
.
RestartFrameAction
.
ID
,
debugactions
.
RestartFrameAction
.
LABEL
));
}
return
TPromise
.
as
(
actions
);
...
...
src/vs/workbench/parts/debug/node/rawDebugSession.ts
浏览文件 @
70cba8bd
...
...
@@ -254,6 +254,10 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
return
this
.
send
(
'
setVariable
'
,
args
);
}
public
restartFrame
(
args
:
DebugProtocol
.
RestartFrameArguments
):
TPromise
<
DebugProtocol
.
RestartFrameResponse
>
{
return
this
.
send
(
'
restartFrame
'
,
args
);
}
public
disconnect
(
restart
=
false
,
force
=
false
):
TPromise
<
DebugProtocol
.
DisconnectResponse
>
{
if
(
this
.
stopServerPending
&&
force
)
{
return
this
.
stopServer
();
...
...
src/vs/workbench/parts/debug/test/common/mockDebugService.ts
浏览文件 @
70cba8bd
...
...
@@ -130,6 +130,10 @@ export class MockDebugService implements debug.IDebugService {
public
setVariable
(
variable
:
debug
.
IExpression
,
value
:
string
):
TPromise
<
any
>
{
return
TPromise
.
as
(
null
);
}
public
restartFrame
(
frameId
:
number
):
TPromise
<
any
>
{
return
TPromise
.
as
(
null
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录