MCPcopy Create free account
hub / github.com/editablejs/editable / withProviderProtocol

Function withProviderProtocol

packages/protocols/src/provider.ts:55–62  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

53}
54
55export const withProviderProtocol = (editor: Editor) => {
56 let providerProtocol = PROVIDERS.get(editor)
57 if (!providerProtocol) {
58 providerProtocol = createProviderProtocol(editor)
59 PROVIDERS.set(editor, providerProtocol)
60 }
61 return providerProtocol
62}

Callers 8

withYCodeBlockFunction · 0.90
constructorMethod · 0.90
withYCursorsFunction · 0.90
withYHistoryFunction · 0.90
connectedFunction · 0.90
connectFunction · 0.90
disconnectFunction · 0.90
withYjsFunction · 0.90

Calls 2

createProviderProtocolFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…