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

webview: fix host.js logic #10336

Merged
merged 1 commit into from
Oct 28, 2021
Merged

webview: fix host.js logic #10336

merged 1 commit into from
Oct 28, 2021

Conversation

paul-marechal
Copy link
Member

@paul-marechal paul-marechal commented Oct 27, 2021

The logic previously stopped the handler after running
this.postMessage but I forgot to follow this when modifying this code
in another PR.

Fix the logic by respecting what was previously done.

Fix #10331.

cc @StanZGenchev.

How to test

  • Open custom-editor-sample from the official https://github.com/microsoft/vscode-extension-samples and run it.
  • Open the developer tools and switch to console.
  • Open the example.cscratch file in exampleFiles in the custom-editor-sample folder.
  • Trigger any action in the custom editor.
  • See no error in the console.

Review checklist

Reminder for reviewers

The logic previously stopped the handler after running
`this.postMessage` but I forgot to follow this when modifying this code
in another PR.

Fix the logic by respecting what was previously done.
@vince-fugnitto vince-fugnitto added the webviews issues related to webviews label Oct 27, 2021
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 changes work well (tested with the custom-editor) 👍
On master I experienced the issue:

Screen Shot 2021-10-27 at 5 43 48 PM

@paul-marechal paul-marechal merged commit fd50e5c into master Oct 28, 2021
@paul-marechal paul-marechal deleted the mp/webview-check branch October 28, 2021 05:07
@github-actions github-actions bot added this to the 1.19.0 milestone Oct 28, 2021
mcgordonite pushed a commit to ARMmbed/theia that referenced this pull request Nov 1, 2021
The logic previously stopped the handler after running
`this.postMessage` but I forgot to follow this when modifying this code
in another PR.

Fix the logic by respecting what was previously done.
westbury pushed a commit to ARMmbed/theia that referenced this pull request Nov 3, 2021
The logic previously stopped the handler after running
`this.postMessage` but I forgot to follow this when modifying this code
in another PR.

Fix the logic by respecting what was previously done.
westbury pushed a commit to ARMmbed/theia that referenced this pull request Nov 3, 2021
The logic previously stopped the handler after running
`this.postMessage` but I forgot to follow this when modifying this code
in another PR.

Fix the logic by respecting what was previously done.
westbury pushed a commit to ARMmbed/theia that referenced this pull request Nov 3, 2021
The logic previously stopped the handler after running
`this.postMessage` but I forgot to follow this when modifying this code
in another PR.

Fix the logic by respecting what was previously done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webviews issues related to webviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plug-in "no handler for message" error
2 participants