Skip to content

[debug view] Fix restoring of selected configuration#10287

Merged
paul-marechal merged 2 commits intomasterfrom
asl/restore-selected-debug-config
Oct 18, 2021
Merged

[debug view] Fix restoring of selected configuration#10287
paul-marechal merged 2 commits intomasterfrom
asl/restore-selected-debug-config

Conversation

@alvsan09
Copy link
Contributor

What it does

Fixes: #7918

The debug view has the functionality to save the currently selected
debug configuration to local storage.

However the restoring of it failed as the initialization of the
debug configuration manager was not completed by the time the restore
action was attempted.

This change fixes the intended wait for initialization of the debug
configuration manger.

How to test

1. Select "Run Mocha Test" launch config,
2. Refresh the browser,
3. Verify that the "Run Mocha Test" configuration is selected back.

debug-restoring-selected-config

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added the debug issues that related to debug functionality label Oct 18, 2021
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that the issue exists on master and is addressed by this change nicely 👍

alvsan09 and others added 2 commits October 18, 2021 14:50
The debug view has the functionality to save the currently selected
debug configuration to local storage.
  However the restoring of it failed as the initialization of the
debug configuration manager was not completed by the time the restore
action was attempted.
  This change fixes the intended wait for initialization of the debug
configuration manger.

Signed-off-by: Alvaro Sanchez-Leon <alvaro.sanchez-leon@ericsson.com>
Co-authored-by: Paul Maréchal <paul.marechal@ericsson.com>
@alvsan09 alvsan09 force-pushed the asl/restore-selected-debug-config branch from a6d0d99 to ec4cef5 Compare October 18, 2021 18:54
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that the debug configuration selection persists across sessions, and looks like an overall better solution that using the deferred 👍

@paul-marechal paul-marechal merged commit 54b6ced into master Oct 18, 2021
@github-actions github-actions bot added this to the 1.19.0 milestone Oct 18, 2021
@paul-marechal paul-marechal deleted the asl/restore-selected-debug-config branch October 18, 2021 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debug issues that related to debug functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[debug] The debug view does not store the selected launch config.

4 participants