Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure cell Id is the only part of internal metadata used in diffing #242382

Merged
merged 6 commits into from
Mar 1, 2025

Conversation

DonJayamanne
Copy link
Contributor

No description provided.

@DonJayamanne DonJayamanne self-assigned this Mar 1, 2025
@@ -56,7 +56,8 @@ class MirrorCell {
hashValue = doHash(this.language, hashValue);
hashValue = doHash(this.getValue(), hashValue);
hashValue = doHash(this.metadata, hashValue);
hashValue = doHash({ ...this.internalMetadata, 'cellId': '' }, hashValue);
// For purpose of diffing only cellId matters, rest do not
hashValue = doHash(this.internalMetadata?.cellId || '', hashValue);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@amunger If internal metadata, such as cell state or anything else thats internal changes, then this cell is marked as changed.
For the purpose of diffing none of the values matter, in face prior to your PR, internal metadata wasn't synced with worker, hence this is a valid change.

	runStartTimeAdjustment?: number;
	runEndTime?: number;
	renderDuration?: { [key: string]: number };

@DonJayamanne DonJayamanne marked this pull request as ready for review March 1, 2025 11:32
@DonJayamanne DonJayamanne enabled auto-merge (squash) March 1, 2025 11:32
@vs-code-engineering vs-code-engineering bot added this to the March 2025 milestone Mar 1, 2025
@DonJayamanne DonJayamanne merged commit f884804 into main Mar 1, 2025
8 checks passed
@DonJayamanne DonJayamanne deleted the don/real-beetle branch March 1, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants