File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/packages/sync/editor/generic Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -415,8 +415,6 @@ export class SyncDoc extends EventEmitter {
415
415
} ) ;
416
416
417
417
private getFileServerPath = ( ) => {
418
- // id of who the user *wants* to be the file server.
419
- this . path ;
420
418
if ( this . path ?. endsWith ( ".sage-jupyter2" ) ) {
421
419
// treating jupyter as a weird special case here.
422
420
return auxFileToOriginal ( this . path ) ;
@@ -1557,6 +1555,14 @@ export class SyncDoc extends EventEmitter {
1557
1555
path : this . path ,
1558
1556
mode : "w" ,
1559
1557
} ) ;
1558
+ // also check on the original file in case of Jupyter:
1559
+ const path = this . getFileServerPath ( ) ;
1560
+ if ( path != this . path ) {
1561
+ await callback2 ( this . client . path_access , {
1562
+ path,
1563
+ mode : "w" ,
1564
+ } ) ;
1565
+ }
1560
1566
// no error -- it is NOT read only
1561
1567
return false ;
1562
1568
} catch ( err ) {
You can’t perform that action at this time.
0 commit comments