-
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
Run menu does not remember dynamic launch configurations #96293
Comments
Yes, this is the limitation of the current approach. Since they come async they are not present when view loaded. |
Will have to reopen this one due to the way I fixed #100265 |
I think @connor4312 already suggested the best solution in his initial comment:
|
I have pushed a "controversial" fix for this. I am storing dynamic configurations in the local storage across reloads. Regular configurations I do not store. I did not see an alternative solution that would make this experience nice. Your suggestion to simply preserve stub objects would have a strange experience:
My previous attempt to store launch configuratoins produced some side effects but all of the problems were due to the fact that I was storing all configurations. Now I handle dynamic configurations as a corner case and only store them @weinand @connor4312 please try it out and let me know what you think. I am fine with reverting this or taking another approach, this just made the most sense to me from the user perspective. User chooses just once, and every consecutive F5 he hits it just starts debugging. To "clear" the choosen configuration he has to unselect the provider and select it again. Alternative approach: is to ask the user every time he hits F5 what configuration he wants. |
@isidorn you said:
I don't understand why there is a need to for asking the user anything after a reload.
Did you make sure that the issues with the persisted "noDebug" property are not again occurring with your fix? |
@weinand I have verified that the perisisted "noDebug" property is not again occuring. However I tried this with JS Debug which is now using a new Also you are correct that we can not ask the user, that we could just pick the right launch config. I missed this idea in my thought process. However for this we need to store the Due to the above I will revert the change and push this out to debt week. |
As we have agreed I am now:
I have tried this and it works good. Please try it out and let me know how it goes for you. |
While I don't know what a dynamic launch configuration is (and Google is not helpful: https://www.google.com/search?q=%22dynamic+launch+configuration%22+%22vs+code%22), I would like to point out that two very similar issues that I expected to be fixed by this are not fixed. This includes #100451 (which is related to reloads) and issue 2 of #90216 (which is related to changes in launch configs). I can repro both issues in today's insiders:
|
I tried this today and things were not working too well for me. I observed two issues:
Here's a video -- the dynamic config opens a terminal and runs |
@connor4312 thanks. I am sure this was working when I closed this 23 days ago. |
@connor4312 good catch. The issue was that the type of the Javascript debug terminal dynamic config was pwa-terminal which did not macth the provider type. Which I needed to select the right element. Anyways pushed a fix for this and it should now be good. Thanks |
Unclear to me how to verify this, I suggest that @connor4312 verifies this today. |
I have to say that #100451 is not fixed in today's insider:
|
@bersbersbers In your previous comment you mentioned that you do not know what dynamic launch configurations are. Thanks |
Correct - I dropped that as a hint for someone to maybe point out the difference between "launch configurations" and "dynamic launch configurations" ;) and also, between this bug and the bug I reported. Since the one I reported is exactly identical to this one except that it also applies to "non-dynamic launch configurations" (concluding from the fact that it's still reproducible). Furthermore, from the fast that the concept of "dynamic launch configurations" is hardly documented anywhere, I had concluded that non-dynamic launch configurations are the much more frequent use case, and so I thought that bug I reported might have at least the same relevance as this once. But apparently that's not the case, and I'll patiently wait now until it rises from the backlog ;) |
Works well now, thanks! |
The UI for remembered dynamic launch configurations is not discoverable and needs to fixed. |
Refs: #95837
Steps to Reproduce:
Run
menuI assume this is because the dynamic configurations are provided asynchronously/aren't present when the view is first loaded.
Switching out the selected configuration after extension activation would be awkward. Maybe the run view should have a 'stub' item and assume that the previously selected dynamic configuration will be provided once activation completes (and only reset the selected item if it doesn't exist after activation).
The text was updated successfully, but these errors were encountered: