Support multiplexing of spawned debug sessions
Nessuno ha ancora preso questa issue.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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;
- Lingua principale
- HTML
- Stelle
- 1.8k
- Fork
- 173
- Merge medio
- 7g 7h
- PR unite (30g)
- 2
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/debug-adapter-protocol
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
microsoft/debug-adapter-protocol#633 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
microsoft/debug-adapter-protocol#599 · 8 reazioni ·
-
under-discussion
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
microsoft/debug-adapter-protocol#596 · 9 commenti ·