We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8898be9 commit c74ffa7Copy full SHA for c74ffa7
1 file changed
src/notebooks/deepnote/deepnoteFileChangeWatcher.ts
@@ -370,7 +370,12 @@ export class DeepnoteFileChangeWatcher implements IExtensionSyncActivationServic
370
// mtime from our recent write, so no "content is newer" conflict.
371
this.markSelfWrite(fileUri);
372
try {
373
- await workspace.save(notebook.uri);
+ const saved = await workspace.save(notebook.uri);
374
+ if (!saved) {
375
+ this.consumeSelfWrite(fileUri);
376
+ logger.warn(`[FileChangeWatcher] Save after sync write returned undefined: ${notebook.uri.path}`);
377
+ return;
378
+ }
379
} catch (saveError) {
380
this.consumeSelfWrite(fileUri);
381
logger.warn(`[FileChangeWatcher] Save after sync write failed: ${notebook.uri.path}`, saveError);
0 commit comments