Skip to content

Commit 03cbe60

Browse files
committed
Fix isReadonly being inverted for custom editors
For microsoft#96503 This should enable the revert command on windows
1 parent 6cc7c45 commit 03cbe60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/api/browser/mainThreadWebview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ class MainThreadCustomEditorModel extends Disposable implements ICustomEditorMod
722722
//#endregion
723723

724724
public isReadonly() {
725-
return this._editable;
725+
return !this._editable;
726726
}
727727

728728
public get viewType() {

0 commit comments

Comments
 (0)