Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
bf5a52e2
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,发现更多精彩内容 >>
提交
bf5a52e2
编写于
9月 18, 2018
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debugSession.dispose -> debugSession.shutdown
上级
5f7d8d49
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
12 deletion
+15
-12
src/vs/workbench/parts/debug/common/debug.ts
src/vs/workbench/parts/debug/common/debug.ts
+8
-5
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+4
-4
src/vs/workbench/parts/debug/electron-browser/debugSession.ts
...vs/workbench/parts/debug/electron-browser/debugSession.ts
+2
-2
src/vs/workbench/parts/debug/test/common/mockDebug.ts
src/vs/workbench/parts/debug/test/common/mockDebug.ts
+1
-1
未找到文件。
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
bf5a52e2
...
...
@@ -136,7 +136,7 @@ export interface LoadedSourceEvent {
source
:
Source
;
}
export
interface
IDebugSession
extends
ITreeElement
,
IDisposable
{
export
interface
IDebugSession
extends
ITreeElement
{
readonly
configuration
:
IConfig
;
readonly
unresolvedConfiguration
:
IConfig
;
...
...
@@ -151,16 +151,19 @@ export interface IDebugSession extends ITreeElement, IDisposable {
rawUpdate
(
data
:
IRawModelUpdate
):
void
;
// session events
onDidEndAdapter
:
Event
<
AdapterEndEvent
>
;
onDidChangeState
:
Event
<
State
>
;
readonly
onDidEndAdapter
:
Event
<
AdapterEndEvent
>
;
readonly
onDidChangeState
:
Event
<
State
>
;
// DA capabilities
readonly
capabilities
:
DebugProtocol
.
Capabilities
;
// DAP events
onDidLoadedSource
:
Event
<
LoadedSourceEvent
>
;
onDidCustomEvent
:
Event
<
DebugProtocol
.
Event
>
;
readonly
onDidLoadedSource
:
Event
<
LoadedSourceEvent
>
;
readonly
onDidCustomEvent
:
Event
<
DebugProtocol
.
Event
>
;
// Disconnects and clears state
shutdown
():
void
;
// DAP request
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
bf5a52e2
...
...
@@ -411,7 +411,7 @@ export class DebugService implements IDebugService {
private
doCreateSession
(
root
:
IWorkspaceFolder
,
configuration
:
{
resolved
:
IConfig
,
unresolved
:
IConfig
}):
TPromise
<
any
>
{
const
session
=
<
IDebugSession
>
this
.
instantiationService
.
createInstance
(
DebugSession
,
configuration
,
root
,
this
.
model
);
const
session
=
this
.
instantiationService
.
createInstance
(
DebugSession
,
configuration
,
root
,
this
.
model
);
this
.
allSessions
.
set
(
session
.
getId
(),
session
);
// register listeners as the very first thing!
...
...
@@ -455,7 +455,7 @@ export class DebugService implements IDebugService {
}).
then
(()
=>
session
,
(
error
:
Error
|
string
)
=>
{
if
(
session
)
{
session
.
dispose
();
session
.
shutdown
();
}
if
(
errors
.
isPromiseCanceledError
(
error
))
{
...
...
@@ -481,7 +481,7 @@ export class DebugService implements IDebugService {
}).
then
(
undefined
,
error
=>
{
if
(
session
)
{
session
.
dispose
();
session
.
shutdown
();
}
if
(
errors
.
isPromiseCanceledError
(
error
))
{
...
...
@@ -522,7 +522,7 @@ export class DebugService implements IDebugService {
this
.
notificationService
.
error
(
err
)
);
}
session
.
dispose
();
session
.
shutdown
();
this
.
_onDidEndSession
.
fire
(
session
);
const
focusedSession
=
this
.
viewModel
.
focusedSession
;
...
...
src/vs/workbench/parts/debug/electron-browser/debugSession.ts
浏览文件 @
bf5a52e2
...
...
@@ -122,7 +122,7 @@ export class DebugSession implements IDebugSession {
if
(
this
.
_raw
)
{
// if there was already a connection make sure to remove old listeners
this
.
dispose
();
// TODO: do not use dispose for this!
this
.
shutdown
();
}
return
dbgr
.
getCustomTelemetryService
().
then
(
customTelemetryService
=>
{
...
...
@@ -723,7 +723,7 @@ export class DebugSession implements IDebugSession {
}));
}
dispose
():
void
{
shutdown
():
void
{
dispose
(
this
.
rawListeners
);
this
.
model
.
clearThreads
(
this
.
getId
(),
true
);
this
.
model
.
removeSession
(
this
.
getId
());
...
...
src/vs/workbench/parts/debug/test/common/mockDebug.ts
浏览文件 @
bf5a52e2
...
...
@@ -263,7 +263,7 @@ export class MockSession implements IDebugSession {
throw
new
Error
(
'
Method not implemented.
'
);
}
dispose
():
void
{
}
shutdown
():
void
{
}
}
export
class
MockRawSession
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录