Skip to content

Commit

Permalink
Fix isReadonly being inverted for custom editors
Browse files Browse the repository at this point in the history
For #96503

This should enable the revert command on windows
  • Loading branch information
mjbvz committed May 29, 2020
1 parent 6cc7c45 commit 03cbe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/browser/mainThreadWebview.ts
Expand Up @@ -722,7 +722,7 @@ class MainThreadCustomEditorModel extends Disposable implements ICustomEditorMod
//#endregion

public isReadonly() {
return this._editable;
return !this._editable;
}

public get viewType() {
Expand Down

0 comments on commit 03cbe60

Please sign in to comment.