Support multiplexing of spawned debug sessions
还没有人认领这个 Issue。
评估
这个 Issue 还没有评估数据。
描述
From https://github.com/microsoft/debug-adapter-protocol/issues/79, we now have a way for DA's to start client sessions, which spawns new DA's.
However, for many cases, multiplexing the new sessions over the same DA connection is preferable. As a starting point, I suggest the following.
First, to modify StartDebuggingRequestArguments to accept a connectionId?: number.
interface StartDebuggingRequestArguments {
/**
* Requests that the new connection be multiplexed over the same transport
* as the parent session. If present, ProtocolMessages for the new session
* will have a corresponding `connectionId` property. It is not valid to use
* an ID already in use by an existing session.
*/
connectionId?: number;
Then to add a corresponding optional property on the protocol message.
interface ProtocolMessage {
/**
* If the current session was a child started via a `startDebugging` request,
* then this is set to the `connectionId` that was present in the `StartDebuggingRequestArguments`.
*/
connectionId?: number;
And of course add a capability in the InitializeRequestArguments so DA's know whether this is supported
interface InitializeRequestArguments {
/**
* Whether the client supports `connectionId` in `StartDebuggingRequestArguments`
*/
supportsConnectionMultiplexing?: boolean;
- 主要语言
- HTML
- 星标
- 1.8k
- 派生
- 173
- 平均合并
- 7 天 7 小时
- 30 天内合并 PR
- 2
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/debug-adapter-protocol 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 5/5 一周以上 新手友好度 35/100
microsoft/debug-adapter-protocol#633 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
-
难度 5/5 一周以上 新手友好度 35/100
microsoft/debug-adapter-protocol#599 · 8 个 reaction ·
-
under-discussion
难度 2/5 1-3 小时 新手友好度 48/100
microsoft/debug-adapter-protocol#596 · 9 条评论 ·