Skip to content

Support updating debugAdapter provided sourceReference documents #41362

Closed
@gregg-miskelly

Description

@gregg-miskelly
  • VSCode Version: 1.20.0-insider
    Commit 8697a5e
  • OS Version: Windows 10

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:

<- (E) {"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"}

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?

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityon-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions