-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support updating debugAdapter provided sourceReference documents #41362
Comments
@gregg-miskelly you are correct this is currently not implemented in VSCode. @weinand fyi |
I seems that the "removed" reason for "loadedSource" event is not implemented yet too (vscode 1.27). Can you confirm ? |
„removed“ is implemented in current Insiders (1.28 ) |
@weinand Great news! Until now I believed that the protocol defines only features implemented in the last VScode but if this is not the case how can we know if a feature is available in VSCode? |
The debug adapter protocol is independent from VS Code and contains quite a few features that are not implemented in VS Code but exist in VS or VS for Mac. In the VS Code release notes we always try to clearly state whether a new DAP feature is implemented in VS Code or not. |
I understand but it is difficult to review all release notes to find if a feature of the DAP is implemented or not. |
In general we do not know which clients implements what. So clients should provide that information themselves. Please file a feature request at https://github.com/Microsoft/debug-adapter-protocol/issues |
The loaded scripts view now supports "related resources" per script. Moved to November. |
The changed event from the first comment is this: {
"event": "loadedSource",
"body": {
"reason": "changed",
"source": {
"path": "Source file extracted from PDB File. Original Path: C:\\proj\\DebuggeeTest\\EmbeddedSourceTest\\SmallFile.cs",
"name": "SmallFile.cs",
"sourceReference": 1,
"sources": [
],
"checksums": [
{
"algorithm": "SHA1",
"checksum": "47755c1e39034a3ca708d4659bc36eea3e3880d4"
}
]
}
},
"seq": 44,
"type": "event"
} |
A "changed" event now properly triggers an updates of the "script" node in the LoadedScripts view. Please note that a "changed" event does not yet trigger a refetch of the document content, but this feature will come soon... |
@gregg-miskelly I've added the feature that a "changed" event now triggers a reload of the source content. |
Thanks! |
Commit 8697a5e
I would like to be able to use the sourceReference feature of the debug protocol to return source files to VS Code. But I have ran into one issue - I can't seem to get VS Code to re-query for new content if my virtual document changes.
The debug protocol appears to support this by issuing a "loadedSource" event with a reason of "changed". But when I tied to do this it didn't work. Here is the event I sent:
I couldn't find any code in VS Code to actually consume the "loadedSource" event, so I am assuming this method will not currently work.
Is there anything else I can do, or do I need a new VS Code feature for this?
The text was updated successfully, but these errors were encountered: