webview: extension sometimes posts same comment multiple times
Summary
Sometimes the extension sends the same entered message multiple times to the opened issue/MR when using the experimental webview.
Steps to reproduce
Note that in my experience this seems to be inconsistent.
- Enable Experimental Features in Extension Settings (gitlab.enableExperimentalFeatures)
- Open an issue in webview
- Send a comment
I should note that I have had more success getting this to happen when multiple webview-tabs are open simultaneously (I tested with two), though I had this happen even with only one webview tab open. Perhaps other tabs (like open files) also cause this or maybe doing the multiple tabs aren't strictly required for the bug to occur.
The first time I encountered this behaviour was before GitLab officially adopted this extension, so it isn't a recent development.
What is the current bug behavior?
The same message is sent to the same issue multiple times instead of once. Quick actions seem to be applied multiple times, too.
What is the expected correct behavior?
The new comment and any included quick action should only be added/triggered once.
Relevant logs and/or screenshots
Possible fixes
No idea.
Versions and OS
- VSCode Version: 1.47.0 (commit d5e9aa0227e057a60c82568bf31c04730dc15dcd)
- Extension Version: 3.0.4 (from official marketplace)
- OS: Arch Linux x86_64 (all packages up-to-date)