Skip to content

Finalize Webview persistence API #49022

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

Closed
mjbvz opened this issue May 1, 2018 · 3 comments
Closed

Finalize Webview persistence API #49022

mjbvz opened this issue May 1, 2018 · 3 comments
Assignees
Milestone

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented May 1, 2018

Finalize the proposed webview serialization API: https://github.com/Microsoft/vscode/blob/245155d1614ce3cec37738c984369b8b03c4c32f/src/vs/vscode.proposed.d.ts#L291

Open questions:

@mjbvz mjbvz added webview Webview issues api-proposal labels May 1, 2018
@mjbvz mjbvz added this to the May 2018 milestone May 1, 2018
@mjbvz mjbvz self-assigned this May 1, 2018
@mjbvz
Copy link
Collaborator Author

mjbvz commented May 14, 2018

Proposed changes:

  • Remove serialize. Always use the state from setState inside the webview. This avoids having to call out to extensions on shutdown.
  • Pass the state from setState to deserialize

One downside is that webviews have to have js enabled for this to work

mjbvz added a commit that referenced this issue May 14, 2018
@mjbvz mjbvz closed this as completed May 23, 2018
@mjbvz mjbvz modified the milestones: May 2018, June 2018 May 31, 2018
@mjbvz mjbvz reopened this May 31, 2018
@mjbvz
Copy link
Collaborator Author

mjbvz commented May 31, 2018

Moving back to proposed for a little more polishing

@mjbvz
Copy link
Collaborator Author

mjbvz commented Jun 27, 2018

Fixed by 2ed5aee

@mjbvz mjbvz closed this as completed Jun 27, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant