(extensionId: string, cm: CodeMirror | undefined, readonly multiplayer: boolean)
| 8 | docs: CodeMirror.Doc[] = []; |
| 9 | hookedEditors = new WeakSet<CodeMirror.Editor>(); |
| 10 | constructor(extensionId: string, cm: CodeMirror | undefined, readonly multiplayer: boolean) { |
| 11 | this.codeMirrorManager = new CodeMirrorManager(extensionId, { |
| 12 | ideName: 'codemirror', |
| 13 | ideVersion: `${cm?.version ?? 'unknown'}-${window.location.hostname}`, |
| 14 | }); |
| 15 | if (cm !== undefined) { |
| 16 | cm.defineInitHook(this.editorHook()); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | editorHook(): (editor: CodeMirror.Editor) => void { |
| 21 | const hook = this.codeMirrorManager.clearCompletionInitHook(); |
nothing calls this directly
no test coverage detected