Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
4498f92e
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,发现更多精彩内容 >>
提交
4498f92e
编写于
7月 12, 2017
作者:
A
Andre Weinand
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add more debug API
上级
883ed445
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
52 addition
and
59 deletion
+52
-59
src/vs/vscode.d.ts
src/vs/vscode.d.ts
+48
-4
src/vs/vscode.proposed.d.ts
src/vs/vscode.proposed.d.ts
+0
-51
src/vs/workbench/api/node/extHost.api.impl.ts
src/vs/workbench/api/node/extHost.api.impl.ts
+4
-4
未找到文件。
src/vs/vscode.d.ts
浏览文件 @
4498f92e
...
...
@@ -5352,6 +5352,11 @@ declare module 'vscode' {
*/
export
interface
DebugSession
{
/**
* The unique ID of this debug session.
*/
readonly
id
:
string
;
/**
* The debug session's type from the debug configuration.
*/
...
...
@@ -5369,20 +5374,59 @@ declare module 'vscode' {
}
/**
*
Namespace for dealing with debug sessions
.
*
A custom Debug Adapter Protocol event received from a [debug session](#DebugSession)
.
*/
export
namespace
debug
{
export
interface
DebugSessionCustomEvent
{
/**
* The [debug session](#DebugSession) for which the custom event was received.
*/
session
:
DebugSession
;
/**
*
An [event](#Event) which fires when a debug session has terminated
.
*
Type of event
.
*/
export
const
onDidTerminateDebugSession
:
Event
<
DebugSession
>
;
event
:
string
;
/**
* Event specific information.
*/
body
?:
any
;
}
/**
* Namespace for dealing with debug sessions.
*/
export
namespace
debug
{
/**
* Create a new debug session based on the given configuration.
* @param configuration
*/
export
function
createDebugSession
(
configuration
:
DebugConfiguration
):
Thenable
<
DebugSession
>
;
/**
* The currently active debug session or `undefined`. The active debug session is the one
* represented by the debug action floating window or the one currently shown in the drop down menu of the debug action floating window.
* If no debug session is active, the value is `undefined`.
*/
export
let
activeDebugSession
:
DebugSession
|
undefined
;
/**
* An [event](#Event) which fires when the [active debug session](#debug.activeDebugSession)
* has changed. *Note* that the event also fires when the active debug session changes
* to `undefined`.
*/
export
const
onDidChangeActiveDebugSession
:
Event
<
DebugSession
|
undefined
>
;
/**
* An [event](#Event) which fires when a custom DAP event is received from the debug session.
*/
export
const
onDidReceiveDebugSessionCustomEvent
:
Event
<
DebugSessionCustomEvent
>
;
/**
* An [event](#Event) which fires when a debug session has terminated.
*/
export
const
onDidTerminateDebugSession
:
Event
<
DebugSession
>
;
}
/**
...
...
src/vs/vscode.proposed.d.ts
浏览文件 @
4498f92e
...
...
@@ -189,55 +189,4 @@ declare module 'vscode' {
*/
onData
(
callback
:
(
data
:
string
)
=>
any
):
void
;
}
/**
* A custom Debug Adapter Protocol event received from a [debug session](#DebugSession).
*/
export
interface
DebugSessionCustomEvent
{
/**
* The [debug session](#DebugSession) for which the custom event was received.
*/
session
:
DebugSession
;
/**
* Type of event.
*/
event
:
string
;
/**
* Event specific information.
*/
body
?:
any
;
}
export
namespace
debug
{
/**
* The currently active debug session or `undefined`. The active debug session is the one
* represented by the debug action floating window or the one currently shown in the drop down menu of the debug action floating window.
* If no debug session is active, the value is `undefined`.
*/
export
let
activeDebugSession
:
DebugSession
|
undefined
;
/**
* An [event](#Event) which fires when the [active debug session](#debug.activeDebugSession)
* has changed. *Note* that the event also fires when the active debug session changes
* to `undefined`.
*/
export
const
onDidChangeActiveDebugSession
:
Event
<
DebugSession
|
undefined
>
;
/**
* An [event](#Event) which fires when a custom DAP event is received from the debug session.
*/
export
const
onDidReceiveDebugSessionCustomEvent
:
Event
<
DebugSessionCustomEvent
>
;
}
export
interface
DebugSession
{
/**
* The debug session's ID.
*/
readonly
id
:
string
;
}
}
src/vs/workbench/api/node/extHost.api.impl.ts
浏览文件 @
4498f92e
...
...
@@ -473,12 +473,12 @@ export function createApiFactory(
onDidTerminateDebugSession
(
listener
,
thisArg
?,
disposables
?)
{
return
extHostDebugService
.
onDidTerminateDebugSession
(
listener
,
thisArg
,
disposables
);
},
onDidChangeActiveDebugSession
:
proposedApiFunction
(
extension
,
(
listener
,
thisArg
?,
disposables
?)
=>
{
onDidChangeActiveDebugSession
(
listener
,
thisArg
?,
disposables
?)
{
return
extHostDebugService
.
onDidChangeActiveDebugSession
(
listener
,
thisArg
,
disposables
);
}
)
,
onDidReceiveDebugSessionCustomEvent
:
proposedApiFunction
(
extension
,
(
listener
,
thisArg
?,
disposables
?)
=>
{
},
onDidReceiveDebugSessionCustomEvent
(
listener
,
thisArg
?,
disposables
?)
{
return
extHostDebugService
.
onDidReceiveDebugSessionCustomEvent
(
listener
,
thisArg
,
disposables
);
}
)
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录