Connor Peet 8a32f69162
refactor: cleanup debt for hashing (#230174)
* refactor: cleanup debt for hashing

- Adds a type to avoid direct usage of sync `hash()` for consumers
  working with binary input.
- Moved the previous browser-only `sha1Hex` to `hash.ts` now that
  webcrypto is quite universal, including in Node.js since 19.
- Cleaned up some code that is replaced with modern built-in functions
  like `TypedArray.fill` and `padStart`.
- The `NotebookSimpleWorker` was manually calculating the hash for
  its binary data (probably to avoid the same issue as #229619), so
  I swapped that to use webcrypto as well which is much speedier for
  large inputs (125ms vs 8ms for 10MB of data) @rebornix

Closes https://github.com/microsoft/vscode/issues/229845

* update layer checker
2024-09-30 20:56:03 -07:00
..
2024-09-30 11:13:55 +02:00
2024-09-27 08:32:14 +02:00
2024-09-06 14:33:30 +02:00
2024-09-06 14:26:23 +02:00
2024-08-19 16:54:29 +02:00
2024-06-18 16:36:32 +02:00
2024-09-30 14:17:06 -07:00
2024-08-19 16:54:29 +02:00
2024-08-19 16:54:29 +02:00
2024-09-30 14:17:06 -07:00
2024-09-30 13:13:42 -07:00
2024-09-30 13:13:42 -07:00
2024-09-27 08:05:06 +02:00
2024-09-27 08:05:06 +02:00