We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
demo
Cannot be used in the latest version, how to solve it
const WorkerBasedDocumentDiffProvider = require('vs/editor/browser/widget/diffEditor/workerBasedDocumentDiffProvider').WorkerBasedDocumentDiffProvider; class MyDiffProviderFactoryService { createDiffProvider(editor, options) { console.log('compute diff'); const provider = standaloneServices.StandaloneServices.initialize().createInstance(WorkerBasedDocumentDiffProvider, {}); return { onDidChange: () => {}, async computeDiff(original, modified, options, token) { const d = await provider.computeDiff(original, modified, options, token); return { changes: d.changes.slice(1), moves: [], identical: false, quitEarly: false, }; } } } } const standaloneServices = require("vs/editor/standalone/browser/standaloneServices"); standaloneServices.StandaloneServices.initialize({ 'diffProviderFactoryService': new MyDiffProviderFactoryService(), }); const m1 = monaco.editor.createModel(` 1 2 3 4 5 6 7 8 9`); const m2 = monaco.editor.createModel(` 1 2 x 4 5 6 8 9`); const diffEditor = monaco.editor.createDiffEditor(document.getElementById('container'), {}); console.log('1'); diffEditor.setModel({ original: m1, modified: m2, });
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
demo
Cannot be used in the latest version, how to solve it
Monaco Editor Playground Code
Reproduction Steps
Actual (Problematic) Behavior
No response
Expected Behavior
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: