Elffuss BraidHub

utopia-ia/elffuss-code public

main · 562 BRawPermalink
1// Stand-in for @vscode/diff, the optional external diff algorithm (it ships a
2// wasm binary and spawns its own worker from a URL). VS Code only loads it when
3// diffEditor.diffAlgorithm names it; the sandbox never shows a diff editor and
4// keeps VS Code's built-in algorithm.
5const unavailable = () => Promise.reject(new Error('The external diff algorithm is not available in Elffuss Code.'));
6export const createDiffComputer = unavailable;
7export const createWorkerDiffComputer = unavailable;
8export default { createDiffComputer, createWorkerDiffComputer };