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

Sync hashing of notebook outputs, hence sync nb diffing #242386

Merged
merged 1 commit into from
Mar 2, 2025

Conversation

DonJayamanne
Copy link
Contributor

No description provided.

@DonJayamanne DonJayamanne self-assigned this Mar 1, 2025
op.outputs.map(o => crypto.subtle.digest('sha-1', o.data.buffer))
));
const digests = this.outputs.flatMap(op =>
op.outputs.map(o => hash(Array.from(o.data.buffer)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using the same technique used in renderer process to compute of hashes of outputs.
Also makes it simpler
A separate PR would be to change computeDiff to make it sync, however thats a bigger change and leaving that for later.
@rebornix /cc

@DonJayamanne DonJayamanne requested review from rebornix and removed request for rebornix March 1, 2025 11:49
@DonJayamanne DonJayamanne marked this pull request as ready for review March 2, 2025 00:29
@DonJayamanne DonJayamanne enabled auto-merge (squash) March 2, 2025 00:30
@vs-code-engineering vs-code-engineering bot added this to the March 2025 milestone Mar 2, 2025
@DonJayamanne DonJayamanne merged commit 207f99d into main Mar 2, 2025
8 checks passed
@DonJayamanne DonJayamanne deleted the don/military-krill branch March 2, 2025 00:33
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