-
Notifications
You must be signed in to change notification settings - Fork 58
Emit "scriptLoaded" event #118
Comments
I'm already sending an event of type 'script' for VS, I guess these are both private/experimental extensions to the protocol. Hopefully we can consolidate them in the future, per microsoft/vscode-debugadapter-node#108 |
I can't get this to work. I'm sending scriptLoaded events but usually only the I debugged the extension host side for a bit, and it seems to be successfully adding the items to the tree, so I'm not sure what the problem is. And it seems more likely to repro when I'm debugging the event handler for awhile, so maybe there's a timing issue. |
@roblourens you are probably running into Sandeep's bad fix for microsoft/vscode#31191 |
With a good fix for microsoft/vscode#31191 and some node2 specific glue, the loaded scripts show and update correctly for the "inspector" protocol. You might want to consider to use the same path format in the event as in the 'getLoadedScripts' response. |
I'll send a scriptLoaded event so I can leave the VS event alone, and send the right path for vscode. It's easy and I have the change ready anyway :) |
even better! |
"legacy" puts the unnamed scripts under But we can consider to introduce another "well known" category: I like the If you like to try this, you can do this already in node-debug2 without touching "loadedScripts.ts". Just return the paths for eval scripts with the |
To finish the "Loaded Scripts Explorer" I'd need a custom
scriptLoaded
event from "node-debug2":Here is the code from node-debug:
The "path" attribute should use the same form as the paths used in the
getLoadedScripts
request.Tomorrows insider should have the "Loaded Scripts Explorer" (and if not VS Code will ignore the event).
(Since I've noticed that the result format of the
getLoadedScripts
request is utterly redundant, I'm planning to simplify this today. But I will create a separate issue for this and I will continue to support the old and new format in parallel..).The text was updated successfully, but these errors were encountered: