Skip to content

Fix model disposal issue#276919

Merged
benibenj merged 1 commit intomainfrom
benibenj/ethical-wildfowl
Nov 12, 2025
Merged

Fix model disposal issue#276919
benibenj merged 1 commit intomainfrom
benibenj/ethical-wildfowl

Conversation

@benibenj
Copy link
Contributor

Copilot Generated Description: Address the issue of model disposal by ensuring that both the model and text model are checked before proceeding with operations. Update conditions to prevent errors related to undefined models.

fixes #263234

Copilot AI review requested due to automatic review settings November 12, 2025 14:16
@benibenj benibenj enabled auto-merge November 12, 2025 14:16
@benibenj benibenj self-assigned this Nov 12, 2025
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses model disposal issues in the inline edits view by ensuring proper null checks for both the model and text model before operations that depend on them.

Key Changes:

  • Added reactive text model checks in the _uiState derived computation to prevent errors when the model is disposed
  • Updated the viewZone management to read the text model reactively instead of using a static reference
  • Made the viewZoneId check more explicit by changing from a falsy check to a strict undefined comparison

@benibenj benibenj merged commit 70100f1 into main Nov 12, 2025
33 of 34 checks passed
@benibenj benibenj deleted the benibenj/ethical-wildfowl branch November 12, 2025 14:38
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NES widget is not shown even though there is one

3 participants