Skip to content

Commit 9721b4a

Browse files
committed
Make sure custom editor working copy is initially considered dirty
For microsoft#96503
1 parent 03cbe60 commit 9721b4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,11 @@ class MainThreadCustomEditorModel extends Disposable implements ICustomEditorMod
661661
) {
662662
super();
663663

664+
this._fromBackup = fromBackup;
665+
664666
if (_editable) {
665667
this._register(workingCopyService.registerWorkingCopy(this));
666668
}
667-
this._fromBackup = fromBackup;
668669
}
669670

670671
get editorResource() {

0 commit comments

Comments
 (0)