| 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. |
| 5 | const unavailable = () => Promise.reject(new Error('The external diff algorithm is not available in Elffuss Code.')); |
| 6 | export const createDiffComputer = unavailable; |
| 7 | export const createWorkerDiffComputer = unavailable; |
| 8 | export default { createDiffComputer, createWorkerDiffComputer }; |