MCPcopy Create free account
hub / github.com/Exafunction/codeium-chrome / constructor

Method constructor

src/codemirrorInject.ts:10–18  ·  view source on GitHub ↗
(extensionId: string, cm: CodeMirror | undefined, readonly multiplayer: boolean)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 1

editorHookMethod · 0.95

Tested by

no test coverage detected