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 {
154154 options : Contents . ISharedFactoryOptions ,
155155 sharedModel : YDocument < DocumentChange >
156156 ) => {
157+ console . log ( '_onCreate' , options ) ;
157158 if ( typeof options . format !== 'string' ) {
158159 return ;
159160 }
@@ -166,6 +167,7 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
166167 user : this . _user ,
167168 translator : this . _trans
168169 } ) ;
170+ console . log ( 'provider' , provider ) ;
169171
170172 this . _app . serviceManager . contents . get ( options . path , { content : true } ) . then ( model => {
171173 console . log ( 'set model source:' , model ) ;
@@ -280,6 +282,7 @@ class SharedModelFactory implements ISharedModelFactory {
280282 createNew (
281283 options : Contents . ISharedFactoryOptions
282284 ) : ISharedDocument | undefined {
285+ console . log ( "createNew" , options ) ;
283286 if ( typeof options . format !== 'string' ) {
284287 console . warn ( `Only defined format are supported; got ${ options . format } .` ) ;
285288 return ;
@@ -296,6 +299,7 @@ class SharedModelFactory implements ISharedModelFactory {
296299 this . _onCreate ( options , sharedModel ) ;
297300 return sharedModel ;
298301 }
302+ console . log ( "no document factory" ) ;
299303
300304 return ;
301305 }
You can’t perform that action at this time.
0 commit comments