Added toggle read-only mode (Alt + Shift +R)#82748
Conversation
|
Hi, Thanks for the PR. However we usually prefer to first start a discussion about the implementation before going ahead and doing the whole thing. @alexandrudima in case you like the editor changes feel free to review them |
|
The code editor already has a readOnly option that works 100% correctly. See here Simply put, the workbench must instantiate all editors and set their option to use |
Dear @alexdima: Could you possibly come up with a code example, how to implement this for @holeguma or other potential contributors (or maybe implement it yourself), as this functionality has been on the wishlist for many for quite some time? ( #4873, April 2016, 55 comments ). |
|
@henrik-jensen My feedback was specific to this PR. The code editor widget already has support to be read only, through the |
There is a command called ToggleReadOnlyMode, which toggled read-only mode.
When turned on, all files on editor are in read-only mode.
It can be switched by Alt + Shift + R or menu bar.
This fixes #4873
It's my first time submitting a pull request , I apologize in advance if I made a mistake.
Result:
