Creates a new VS Code Loro provider instance.
Unique adapter identifier for this provider.
Loro document instance for CRDT operations.
Username for awareness state.
User's display color for awareness presence.
OptionalwebsocketUrl: stringOptional WebSocket URL for server connection.
Get the awareness provider.
Connect to the collaboration server.
Disconnect from the collaboration server.
Unregister event listener for synchronization state changes.
Event type 'sync'.
Callback function to remove.
Unregister event listener for connection status changes.
Event type 'status'.
Callback function to remove.
Unregister event listener for remote document updates.
Event type 'update'.
Callback function to remove.
Unregister event listener for document reload events.
Event type 'reload'.
Callback function to remove.
Register event listener for synchronization state changes.
Event type 'sync'.
Callback function receiving sync state.
Register event listener for connection status changes.
Event type 'status'.
Callback function receiving status object.
Register event listener for remote document updates.
Event type 'update'.
Callback function receiving update data.
Register event listener for document reload events.
Event type 'reload'.
Callback function receiving reloaded document.
Provider implementation for VS Code environment. Uses postMessage to communicate with extension's WebSocket adapter.