Skip to content

Commit b679819

Browse files
committed
fix: mark fiddle as edited if files added/deleted
1 parent ec297b3 commit b679819

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer/editor-mosaic.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ export class EditorMosaic {
169169
} else {
170170
this.hide(id);
171171
}
172+
173+
this.isEdited = true;
172174
}
173175

174176
/// show or hide files in the view
@@ -241,6 +243,8 @@ export class EditorMosaic {
241243
this.editors.delete(id);
242244
this.backups.delete(id);
243245
this.setVisible(getLeaves(this.mosaic).filter((v) => v !== id));
246+
247+
this.isEdited = true;
244248
}
245249

246250
/** Wire up a newly-mounted Monaco editor */

0 commit comments

Comments
 (0)