Skip to content

Commit dbfc61e

Browse files
committed
More debug
1 parent 7441691 commit dbfc61e

File tree

1 file changed

+4
-0
lines changed
  • packages/my-shared-docprovider/src

1 file changed

+4
-0
lines changed

packages/my-shared-docprovider/src/drive.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)