Skip to content

Commit 5388ead

Browse files
committed
Remove the second markSelfWrite() on the workspace.save() path.
1 parent 8d061ac commit 5388ead

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/notebooks/deepnote/deepnoteFileChangeWatcher.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,16 +368,13 @@ export class DeepnoteFileChangeWatcher implements IExtensionSyncActivationServic
368368

369369
// Save to clear dirty state. VS Code serializes (same bytes) and sees the
370370
// mtime from our recent write, so no "content is newer" conflict.
371-
this.markSelfWrite(fileUri);
372371
try {
373372
const saved = await workspace.save(notebook.uri);
374373
if (!saved) {
375-
this.consumeSelfWrite(fileUri);
376374
logger.warn(`[FileChangeWatcher] Save after sync write returned undefined: ${notebook.uri.path}`);
377375
return;
378376
}
379377
} catch (saveError) {
380-
this.consumeSelfWrite(fileUri);
381378
logger.warn(`[FileChangeWatcher] Save after sync write failed: ${notebook.uri.path}`, saveError);
382379
}
383380
} catch (serializeError) {

0 commit comments

Comments
 (0)