Skip to content
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

Loaded scripts view does not get dynamically updated #57401

Closed
isidorn opened this issue Aug 28, 2018 · 7 comments
Closed

Loaded scripts view does not get dynamically updated #57401

isidorn opened this issue Aug 28, 2018 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@isidorn
Copy link
Contributor

isidorn commented Aug 28, 2018

Refs: #57249

Have the following JS workspace https://github.com/Microsoft/vscode/files/2238799/loadedScripts.zip
Start debugging hello.js, do a step by step. I would expect the loaded scripts updates and shows new scripts as they get required. Instead the view is always the same

scripts

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Aug 28, 2018
@isidorn isidorn changed the title Loaded scripts view does not get updated as I require modules Loaded scripts view does not get dynamically updated Aug 28, 2018
@weinand
Copy link
Contributor

weinand commented Aug 28, 2018

@isidorn I suspect that loadedScripts events are no longer arriving.

@weinand weinand added this to the August 2018 milestone Aug 28, 2018
@weinand
Copy link
Contributor

weinand commented Aug 28, 2018

@isidorn the new sessions event are no longer arriving here:
https://github.com/Microsoft/vscode/blob/93e30cc319bb2184756819aefbd4f16a27e7a17c/src/vs/workbench/parts/debug/browser/loadedScriptsView.ts#L374

As a consequence I do not register for loadedScriptsEvents.

This issue was probably introduced by the listener refactoring and should be referenced by test item #56822.

@isidorn
Copy link
Contributor Author

isidorn commented Aug 29, 2018

The issue here was that the loaded scripts view gets created only after a session is already alive so he was missing listeners on session which is already present.

@weinand
Copy link
Contributor

weinand commented Aug 29, 2018

Careful: if the order of events has changed that drastically after your refactoring, we are potentially breaking extensions that use the newSessionEvent. I don't like this fix.

@isidorn
Copy link
Contributor Author

isidorn commented Aug 29, 2018

The order of events has not changed. The only thing that changed is internaly how people register to the loadedScriptsEvent, since it is now on the session, not on the service.
So the extensions will not be affected by this.

@alexdima
Copy link
Member

@isidorn Do we have a build with this fix to test #57249 further ? I can also test from sources, just LMK.

@isidorn
Copy link
Contributor Author

isidorn commented Aug 29, 2018

@alexandrudima sorry about that. We do have linux and os x builds, however integration tests are faililng for windows. I will re-trigger builds since I see you have to test windows - they should be out in 30 minutes. And yes you can also test from source afaik
I will not release those builds, so just download them manually.

@isidorn isidorn added the verified Verification succeeded label Aug 30, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants