Skip to content

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Jul 7, 2025

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)

@Colengms Colengms requested a review from a team as a code owner July 7, 2025 18:52
@github-project-automation github-project-automation bot moved this to Pull Request in cpptools Jul 7, 2025
@Colengms Colengms merged commit 79c6f7f into main Jul 7, 2025
6 checks passed
@Colengms Colengms deleted the coleng/fix_lost_config_edits branch July 7, 2025 21:07
@github-project-automation github-project-automation bot moved this from Pull Request to Done in cpptools Jul 7, 2025
Subham-KRLX pushed a commit to Subham-KRLX/vscode-cpptools that referenced this pull request Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Navigating away from config UI results in changes to active field being lost
2 participants