You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support to call debug adapter API from extension #15656
roblourens since the skip-files-ui-feature is a one-off private feature, you are free to introduce whatever protocol you need. Only your debug adapter will use it.
We have added a first version for this. After discussing with Andre Weinand (@weinand) we have decided that the first step for allowing this is for the extension to simply pass the request to vscode which would forward it to the debug adapter.
In the future we should consider making this official API in vscode.d.ts, currently it is simply a workbench command.
Each extension can exectue the command "workbench.customDebugRequest" and pass the request and arguments. Here's an example:
Closing this issue as there is a seperate issue #14728 for tracking the implementation in skip files. roblourens let me know if you need anything else on the vscode side or ping if you have any feedback on how we exposed this
Andre Weinand (@weinand) Thanks! I managed to find that (and this issue) after commenting last night; looks like it should do exactly what I need, thanks!
Activity
isidorn commentedon Nov 17, 2016
Assigning to november to investigate
roblourens commentedon Jan 3, 2017
What's your current thinking about how the extension/debug adapter communication should work for skipFiles?
weinand commentedon Jan 4, 2017
roblourens since the skip-files-ui-feature is a one-off private feature, you are free to introduce whatever protocol you need. Only your debug adapter will use it.
customDebugRequest api
isidorn commentedon Jan 12, 2017
We have added a first version for this. After discussing with Andre Weinand (@weinand) we have decided that the first step for allowing this is for the extension to simply pass the request to vscode which would forward it to the debug adapter.
In the future we should consider making this official API in vscode.d.ts, currently it is simply a workbench command.
Each extension can exectue the command
"workbench.customDebugRequest"and pass the request and arguments. Here's an example:Closing this issue as there is a seperate issue #14728 for tracking the implementation in skip files.
roblourens let me know if you need anything else on the vscode side or ping if you have any feedback on how we exposed this
roblourens commentedon Jan 12, 2017
Looks like exactly what I need, I'll try it out.
weinand commentedon Jun 1, 2017
Danny Tuppeny (@DanTup) please see https://github.com/Microsoft/vscode-node-debug/blob/master/src/node/extension.ts#L42 for sending a request from the extension to the DA, and https://github.com/Microsoft/vscode-node-debug/blob/master/src/node/nodeDebug.ts#L3716 for how to handle the request in the DA.
We are working on improving this API...
DanTup commentedon Jun 2, 2017
Andre Weinand (@weinand) Thanks! I managed to find that (and this issue) after commenting last night; looks like it should do exactly what I need, thanks!