In my custom theia, I’m trying to create a new widget that instantiates theia’s diff view along with a table view within the widget. i.e., my widget will have a table view on top and diff view below that.
Progress till now: I’m able to successfully instantiate and use diff view (used MonacoDiffEditor & EditorWidget) inside my widget. This custom widget is added to the main area in the shell.
Some of the issues i’m facing are:
I would like to make the left-hand-side part of diff view as read-only. Currently, both left & right sides are editable in the diff view.
When I try to edit the file in either the left or right view, the same file gets automatically opened in a new tab in the main area of shell.
Can anyone guide me how to address the 2 issues given above ?
Thanks in advance.