Pranomvignesh / constrained-editor-plugin

This project is to restrict the editable area in the monaco-editor
https://constrained-editor-plugin.vercel.app/
MIT License
99 stars 11 forks source link

this plugin doesn't support DiffEditor? #57

Open lynnxyli opened 3 months ago

lynnxyli commented 3 months ago

my code is

image

but it throws

image

the editor is instance of IStandaloneCodeEditor here, is there a way i can use this plugin in IStandaloneDiffEditor's ModifiedEditor ?

Pranomvignesh commented 3 months ago

No, This plugin is not intended to be used in Diff Editor. As I'm using some internal functions of monaco editor, I want the instance to be exactly ICodeEditor. If you feel there is a proper usecase for this plugin in Diff Editor, feel free to create a pull request incorporating that functionality