Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
1f83a8d1
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,发现更多精彩内容 >>
提交
1f83a8d1
编写于
10月 09, 2018
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debugSession: simplify return types where not used
上级
6e6a67a5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
46 addition
and
46 deletion
+46
-46
src/vs/workbench/parts/debug/common/debug.ts
src/vs/workbench/parts/debug/common/debug.ts
+11
-11
src/vs/workbench/parts/debug/common/debugModel.ts
src/vs/workbench/parts/debug/common/debugModel.ts
+1
-1
src/vs/workbench/parts/debug/electron-browser/debugSession.ts
...vs/workbench/parts/debug/electron-browser/debugSession.ts
+23
-23
src/vs/workbench/parts/debug/test/common/mockDebug.ts
src/vs/workbench/parts/debug/test/common/mockDebug.ts
+11
-11
未找到文件。
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
1f83a8d1
...
...
@@ -183,13 +183,13 @@ export interface IDebugSession extends ITreeElement {
initialize
(
dbgr
:
IDebugger
):
TPromise
<
void
>
;
launchOrAttach
(
config
:
IConfig
):
TPromise
<
void
>
;
restart
():
TPromise
<
DebugProtocol
.
RestartResponse
>
;
restart
():
TPromise
<
void
>
;
terminate
(
restart
?:
boolean
/* false */
):
TPromise
<
void
>
;
disconnect
(
restart
?:
boolean
/* false */
):
TPromise
<
void
>
;
sendBreakpoints
(
modelUri
:
uri
,
bpts
:
IBreakpoint
[],
sourceModified
:
boolean
):
TPromise
<
ActualBreakpoints
|
undefined
>
;
sendFunctionBreakpoints
(
fbps
:
IFunctionBreakpoint
[]):
TPromise
<
ActualBreakpoints
|
undefined
>
;
sendExceptionBreakpoints
(
exbpts
:
IExceptionBreakpoint
[]):
TPromise
<
any
>
;
sendExceptionBreakpoints
(
exbpts
:
IExceptionBreakpoint
[]):
TPromise
<
void
>
;
stackTrace
(
threadId
:
number
,
startFrame
:
number
,
levels
:
number
):
TPromise
<
DebugProtocol
.
StackTraceResponse
>
;
exceptionInfo
(
threadId
:
number
):
TPromise
<
IExceptionInfo
>
;
...
...
@@ -198,15 +198,15 @@ export interface IDebugSession extends ITreeElement {
evaluate
(
expression
:
string
,
frameId
?:
number
,
context
?:
string
):
TPromise
<
DebugProtocol
.
EvaluateResponse
>
;
customRequest
(
request
:
string
,
args
:
any
):
TPromise
<
DebugProtocol
.
Response
>
;
restartFrame
(
frameId
:
number
,
threadId
:
number
):
TPromise
<
DebugProtocol
.
RestartFrameResponse
>
;
next
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
NextResponse
>
;
stepIn
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepInResponse
>
;
stepOut
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepOutResponse
>
;
stepBack
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepBackResponse
>
;
continue
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
ContinueResponse
>
;
reverseContinue
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
ReverseContinueResponse
>
;
pause
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
PauseResponse
>
;
terminateThreads
(
threadIds
:
number
[]):
TPromise
<
DebugProtocol
.
TerminateThreadsResponse
>
;
restartFrame
(
frameId
:
number
,
threadId
:
number
):
TPromise
<
void
>
;
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
>
;
reverseContinue
(
threadId
:
number
):
TPromise
<
void
>
;
pause
(
threadId
:
number
):
TPromise
<
void
>
;
terminateThreads
(
threadIds
:
number
[]):
TPromise
<
void
>
;
completions
(
frameId
:
number
,
text
:
string
,
position
:
Position
,
overwriteBefore
:
number
):
TPromise
<
CompletionItem
[]
>
;
setVariable
(
variablesReference
:
number
,
name
:
string
,
value
:
string
):
TPromise
<
DebugProtocol
.
SetVariableResponse
>
;
...
...
src/vs/workbench/parts/debug/common/debugModel.ts
浏览文件 @
1f83a8d1
...
...
@@ -376,7 +376,7 @@ export class StackFrame implements IStackFrame {
});
}
public
restart
():
TPromise
<
any
>
{
public
restart
():
TPromise
<
void
>
{
return
this
.
thread
.
session
.
restartFrame
(
this
.
frameId
,
this
.
thread
.
threadId
);
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugSession.ts
浏览文件 @
1f83a8d1
...
...
@@ -165,7 +165,7 @@ export class DebugSession implements IDebugSession {
supportsVariablePaging
:
true
,
// #9537
supportsRunInTerminalRequest
:
true
,
// #10574
locale
:
platform
.
locale
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
model
.
addSession
(
this
);
this
.
_onDidChangeState
.
fire
();
this
.
model
.
setExceptionBreakpoints
(
this
.
raw
.
capabilities
.
exceptionBreakpointFilters
);
...
...
@@ -223,9 +223,9 @@ export class DebugSession implements IDebugSession {
/**
* restart debug adapter session
*/
restart
():
TPromise
<
DebugProtocol
.
RestartResponse
>
{
restart
():
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
restart
();
return
this
.
raw
.
restart
()
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
...
...
@@ -293,10 +293,10 @@ export class DebugSession implements IDebugSession {
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
sendExceptionBreakpoints
(
exbpts
:
IExceptionBreakpoint
[]):
TPromise
<
any
>
{
sendExceptionBreakpoints
(
exbpts
:
IExceptionBreakpoint
[]):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
if
(
this
.
raw
.
readyForBreakpoints
)
{
return
this
.
raw
.
setExceptionBreakpoints
({
filters
:
exbpts
.
map
(
exb
=>
exb
.
filter
)
});
return
this
.
raw
.
setExceptionBreakpoints
({
filters
:
exbpts
.
map
(
exb
=>
exb
.
filter
)
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
resolve
(
null
);
}
...
...
@@ -355,65 +355,65 @@ export class DebugSession implements IDebugSession {
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
restartFrame
(
frameId
:
number
,
threadId
:
number
):
TPromise
<
DebugProtocol
.
RestartFrameResponse
>
{
restartFrame
(
frameId
:
number
,
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
restartFrame
({
frameId
},
threadId
);
return
this
.
raw
.
restartFrame
({
frameId
},
threadId
)
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
next
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
NextResponse
>
{
next
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
next
({
threadId
});
return
this
.
raw
.
next
({
threadId
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
stepIn
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepInResponse
>
{
stepIn
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
stepIn
({
threadId
});
return
this
.
raw
.
stepIn
({
threadId
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
stepOut
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepOutResponse
>
{
stepOut
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
stepOut
({
threadId
});
return
this
.
raw
.
stepOut
({
threadId
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
stepBack
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepBackResponse
>
{
stepBack
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
stepBack
({
threadId
});
return
this
.
raw
.
stepBack
({
threadId
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
continue
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
ContinueResponse
>
{
continue
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
continue
({
threadId
});
return
this
.
raw
.
continue
({
threadId
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
reverseContinue
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
ReverseContinueResponse
>
{
reverseContinue
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
reverseContinue
({
threadId
});
return
this
.
raw
.
reverseContinue
({
threadId
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
pause
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
PauseResponse
>
{
pause
(
threadId
:
number
):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
pause
({
threadId
});
return
this
.
raw
.
pause
({
threadId
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
terminateThreads
(
threadIds
?:
number
[]):
TPromise
<
DebugProtocol
.
TerminateThreadsResponse
>
{
terminateThreads
(
threadIds
?:
number
[]):
TPromise
<
void
>
{
if
(
this
.
raw
)
{
return
this
.
raw
.
terminateThreads
({
threadIds
});
return
this
.
raw
.
terminateThreads
({
threadIds
})
.
then
(()
=>
undefined
)
;
}
return
Promise
.
reject
(
new
Error
(
'
no debug adapter
'
));
}
...
...
src/vs/workbench/parts/debug/test/common/mockDebug.ts
浏览文件 @
1f83a8d1
...
...
@@ -206,7 +206,7 @@ export class MockSession implements IDebugSession {
launchOrAttach
(
config
:
IConfig
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
restart
():
TPromise
<
DebugProtocol
.
RestartResponse
>
{
restart
():
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
sendBreakpoints
(
modelUri
:
uri
,
bpts
:
IBreakpoint
[],
sourceModified
:
boolean
):
TPromise
<
ActualBreakpoints
>
{
...
...
@@ -215,7 +215,7 @@ export class MockSession implements IDebugSession {
sendFunctionBreakpoints
(
fbps
:
IFunctionBreakpoint
[]):
TPromise
<
ActualBreakpoints
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
sendExceptionBreakpoints
(
exbpts
:
IExceptionBreakpoint
[]):
TPromise
<
any
>
{
sendExceptionBreakpoints
(
exbpts
:
IExceptionBreakpoint
[]):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
customRequest
(
request
:
string
,
args
:
any
):
TPromise
<
DebugProtocol
.
Response
>
{
...
...
@@ -236,31 +236,31 @@ export class MockSession implements IDebugSession {
evaluate
(
expression
:
string
,
frameId
:
number
,
context
?:
string
):
TPromise
<
DebugProtocol
.
EvaluateResponse
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
restartFrame
(
frameId
:
number
,
threadId
:
number
):
TPromise
<
DebugProtocol
.
RestartFrameResponse
>
{
restartFrame
(
frameId
:
number
,
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
next
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
NextResponse
>
{
next
(
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
stepIn
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepInResponse
>
{
stepIn
(
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
stepOut
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepOutResponse
>
{
stepOut
(
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
stepBack
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
StepBackResponse
>
{
stepBack
(
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
continue
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
ContinueResponse
>
{
continue
(
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
reverseContinue
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
ReverseContinueResponse
>
{
reverseContinue
(
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
pause
(
threadId
:
number
):
TPromise
<
DebugProtocol
.
PauseResponse
>
{
pause
(
threadId
:
number
):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
terminateThreads
(
threadIds
:
number
[]):
TPromise
<
DebugProtocol
.
TerminateThreadsResponse
>
{
terminateThreads
(
threadIds
:
number
[]):
TPromise
<
void
>
{
throw
new
Error
(
'
Method not implemented.
'
);
}
setVariable
(
variablesReference
:
number
,
name
:
string
,
value
:
string
):
TPromise
<
DebugProtocol
.
SetVariableResponse
>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录