-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Do not serialize webview if the serializer for the webview is not set #8473
Conversation
Signed-off-by: Vitaliy Guliy <vgulyy@redhat.com>
widget.storeState = () => { | ||
if (this.webviewRevivers.has(widget.viewType)) { | ||
return storeState(); | ||
} | ||
return {}; | ||
|
||
return undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it?
An idea was that {}
object means don't restore, so a widget gets disposed in restoreState
.
What should I do to reproduce it on master? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have an easy way for a reviewer to test the proposed patch.
As it appeared, I cannot reproduce the issue on vanilla Theia. For that I prepared simple extension, that adds a webview each time on load. When the extension adds But without Let me check it again in Che-Theia. It could be because we use specific commit to initialize che-theia, not the latest commit form master. |
Signed-off-by: Vitaliy Guliy vgulyy@redhat.com
What it does
Disables saving of the webview state if the plugin don't register an apropriate theia.WebviewPanelSerializer
Original downstream issue eclipse-che/che#16352
How to test
Option 1:
Option 2 - Eclipse Che specific:
Option 3:
Review checklist
Reminder for reviewers