File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/my-shared-docprovider/src Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
154
154
options : Contents . ISharedFactoryOptions ,
155
155
sharedModel : YDocument < DocumentChange >
156
156
) => {
157
+ console . log ( '_onCreate' , options ) ;
157
158
if ( typeof options . format !== 'string' ) {
158
159
return ;
159
160
}
@@ -166,6 +167,7 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
166
167
user : this . _user ,
167
168
translator : this . _trans
168
169
} ) ;
170
+ console . log ( 'provider' , provider ) ;
169
171
170
172
this . _app . serviceManager . contents . get ( options . path , { content : true } ) . then ( model => {
171
173
console . log ( 'set model source:' , model ) ;
@@ -280,6 +282,7 @@ class SharedModelFactory implements ISharedModelFactory {
280
282
createNew (
281
283
options : Contents . ISharedFactoryOptions
282
284
) : ISharedDocument | undefined {
285
+ console . log ( "createNew" , options ) ;
283
286
if ( typeof options . format !== 'string' ) {
284
287
console . warn ( `Only defined format are supported; got ${ options . format } .` ) ;
285
288
return ;
@@ -296,6 +299,7 @@ class SharedModelFactory implements ISharedModelFactory {
296
299
this . _onCreate ( options , sharedModel ) ;
297
300
return sharedModel ;
298
301
}
302
+ console . log ( "no document factory" ) ;
299
303
300
304
return ;
301
305
}
You can’t perform that action at this time.
0 commit comments