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

preserve debug view layout #5817

Merged
merged 2 commits into from
Jul 31, 2019
Merged

preserve debug view layout #5817

merged 2 commits into from
Jul 31, 2019

Conversation

akosyakov
Copy link
Member

What it does

fix #5815: preserve the debug view layout state between reloads

commits extracted from #5665

How to test

  • Change debug view layout
  • Reload the browser
  • Check that layout is restored
  • Test with the debug view collapsed and not (i.e. another side view is opened instead)
  • Pay attention that breakpoints are there

Review checklist

Reminder for reviewers

@akosyakov akosyakov added debug issues that related to debug functionality shell issues related to the core shell labels Jul 30, 2019
@AlexTugarev
Copy link
Contributor

Testing right now.

Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

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

I've tested it following the described steps. Debug view layout state was preserved between reloads in all cases.

@AlexTugarev
Copy link
Contributor

2019-07-30 16 20 49

I tested as described above and it works nicely in general!

The only thing I was surprised about was the hight of the view at the bottom after expansion after reload ;-)

Copy link
Contributor

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

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

Works nicely! 💯

@AlexTugarev
Copy link
Contributor

I think there is an issue with travis: E: Unable to locate package oracle-java9-set-default

Copy link
Contributor

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

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

Works nicely!

Widget.attach(this.wrapped, this.body);
MessageLoop.sendMessage(this.wrapped, Widget.Msg.BeforeAttach);
// tslint:disable-next-line:no-null-keyword
this.body.insertBefore(this.wrapped.node, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this do? ;-)

Copy link
Member Author

Choose a reason for hiding this comment

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

do you mean null is not necessary? otherwise it appends a widget to the part body

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks!

@akosyakov
Copy link
Member Author

I think there is an issue with travis: E: Unable to locate package oracle-java9-set-default

Do you think it is temporarily or we should do something about it?

Copy link
Contributor

@tolusha tolusha left a comment

Choose a reason for hiding this comment

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

It works as expected.

otherwise collapsed view containers are not restored

Signed-off-by: Anton Kosyakov <[email protected]>
@akosyakov akosyakov force-pushed the ak/preserve_debug_view branch from 700da87 to f37cb19 Compare July 31, 2019 07:38
@akosyakov akosyakov merged commit 98bf44f into master Jul 31, 2019
@akosyakov akosyakov deleted the ak/preserve_debug_view branch July 31, 2019 07:59
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 shell issues related to the core shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

debug view state is not preserved if it is not visible between reloads
4 participants