Skip to content

Ignore internal cell id when computing cell hash for diffing#240757

Merged
DonJayamanne merged 1 commit intomainfrom
worthwhile-otter
Feb 14, 2025
Merged

Ignore internal cell id when computing cell hash for diffing#240757
DonJayamanne merged 1 commit intomainfrom
worthwhile-otter

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

@DonJayamanne DonJayamanne self-assigned this Feb 14, 2025
hashValue = doHash(this.getValue(), hashValue);
hashValue = doHash(this.metadata, hashValue);
hashValue = doHash(this.internalMetadata, hashValue);
hashValue = doHash({ ...this.internalMetadata, 'cellId': '' }, hashValue);
Copy link
Copy Markdown
Contributor Author

@DonJayamanne DonJayamanne Feb 14, 2025

Choose a reason for hiding this comment

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

Temporary work around for issue caused by #240733

Basically simple scenarios such as inserting a single cell at the top/middle causes diff editor to not work as expected (all cells is marked as changed with a new cell at the bottom)

Either we revert the PR or just add a work around and fix the known issues,
Going with the latter

@DonJayamanne DonJayamanne marked this pull request as ready for review February 14, 2025 10:12
@DonJayamanne DonJayamanne enabled auto-merge (squash) February 14, 2025 10:12
@vs-code-engineering vs-code-engineering bot added this to the February 2025 milestone Feb 14, 2025
@DonJayamanne DonJayamanne merged commit 5dacc94 into main Feb 14, 2025
@DonJayamanne DonJayamanne deleted the worthwhile-otter branch February 14, 2025 11:42
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 31, 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.

2 participants