@@ -33,6 +33,7 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
3333 translator : TranslationBundle ,
3434 ) {
3535 super ( { name : 'RTC' } ) ;
36+ this . _app = app ;
3637 this . _user = app . serviceManager . user ;
3738 this . _trans = translator ;
3839 this . _providers = new Map < string , MyProvider > ( ) ;
@@ -89,7 +90,7 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
8990 // Use `Promise.all` to reject as soon as possible. The Context will
9091 // show a dialog to the user.
9192 const [ model ] = await Promise . all ( [
92- super . get ( localPath , { ...options , content : false } ) ,
93+ await this . _app . serviceManager . contents . get ( localPath , { ...options , content : false } ) ,
9394 provider . ready
9495 ] ) ;
9596 // The server doesn't return a model with a format when content is false,
@@ -98,7 +99,7 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
9899 }
99100 }
100101
101- return super . get ( localPath , options ) ;
102+ return await this . _app . serviceManager . contents . get ( localPath , options ) ;
102103 }
103104
104105 /**
@@ -213,6 +214,7 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
213214 }
214215 } ;
215216
217+ private _app : JupyterFrontEnd ;
216218 private _user : User . IManager ;
217219 private _trans : TranslationBundle ;
218220 private _providers : Map < string , MyProvider > ;
0 commit comments