Skip to content

Commit

Permalink
Set file ID on document state
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 28, 2023
1 parent 102afe3 commit 51e6018
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docprovider/src/yprovider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export class WebSocketProvider implements IDocumentProvider {
this._contentType,
this._path
);
const state = this._sharedModel.ydoc.getMap('state');
state.set('file_id', session.fileId);

this._yWebsocketProvider = new YWebsocketProvider(
this._serverUrl,
Expand Down

0 comments on commit 51e6018

Please sign in to comment.