You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retain openedFiles results for state-level no-op updates
packages/typescript/src/api/async/api.ts:413
Returning baseSnapshot discards the operation results associated with this update request. A state-level no-op can still have openedFiles results, so callers may receive the base object's stale operation and even a runtime tuple shape that contradicts this overload's inferred type. Preserve identity only when both response operation fields are absent.
Preserve operation results when reusing snapshot IDs
packages/typescript/src/api/sync/api.ts:645
Returning baseSnapshot here discards data.operation, although operation results are correlated with the current request. A no-state-change request can still carry results (for example, repeated/subset openFiles, including an empty tuple), so this can return stale results from the base request and violate the inferred tuple type. Reuse identity only when the response has no operation fields; otherwise construct the new wrapper for this server snapshot ID.
This issue also appears on line 673 of the same file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Missed this in #64204