Skip to content

Fix error when closing MRVA webview during extension activation#2280

Merged
koesie10 merged 1 commit intomainfrom
koesie10/fix-webview-disposed
Apr 6, 2023
Merged

Fix error when closing MRVA webview during extension activation#2280
koesie10 merged 1 commit intomainfrom
koesie10/fix-webview-disposed

Conversation

@koesie10
Copy link
Copy Markdown
Member

@koesie10 koesie10 commented Apr 6, 2023

This fixes the "Webview is disposed" error which occurs when the user closes the variant analysis webview while the extension is still activating. We will now check whether the webview is disposed before restoring the view.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

This fixes the "Webview is disposed" error which occurs when the user
closes the variant analysis webview while the extension is still
activating. We will now check whether the webview is disposed before
restoring the view.
@koesie10 koesie10 added the secexp label Apr 6, 2023
@koesie10 koesie10 requested a review from a team as a code owner April 6, 2023 12:59
@charisk
Copy link
Copy Markdown
Contributor

charisk commented Apr 6, 2023

The deserialization stuff are becoming more and more complex. Do we really need that functionality or is there an opportunity here to simplify our code a bit?

Copy link
Copy Markdown
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

Since the feature is there atm I'll leave it for another time to discuss its future.

The code LGTM (I've not tested locally).

@koesie10 koesie10 merged commit fcc9376 into main Apr 6, 2023
@koesie10 koesie10 deleted the koesie10/fix-webview-disposed branch April 6, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants