Fix issue with lost edits in config UI by Colengms · Pull Request #13746 · microsoft/vscode-cpptools
Fixes: #13636
Without retainContextWhenHidden, a webview will be destroyed when obscured (not visible).
Alternatively, it may be possible to set aside some data while editing a field so the edit can be applied when the webview is disposed. (We definitely don't want to be applying edits to the configuration while values are still being typed). Not disposing when hidden is much simpler.
My opinion is that this is working around a VS Code bug. We should be able to leverage "change" events, without having to be aware of the disposal behavior. microsoft/vscode#253146 (comment)