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

Function getPlugin

src/jupyterlabPlugin.ts:145–184  ·  view source on GitHub ↗
(
  extensionId: string,
  jupyterapp: JupyterFrontEnd
)

Source from the content-addressed store, hash-verified

143}
144
145export function getPlugin(
146 extensionId: string,
147 jupyterapp: JupyterFrontEnd
148): JupyterFrontEndPlugin<void> {
149 return {
150 id: 'codeium:plugin',
151 autoStart: true,
152 activate: (
153 app: JupyterFrontEnd,
154 notebookTracker: INotebookTracker,
155 editorTracker: IEditorTracker,
156 documentManager: IDocumentManager,
157 codeMirror: ICodeMirror
158 ) => {
159 // This indirection is necessary to get us a `this` to store state in.
160 new CodeiumPlugin(
161 extensionId,
162 app,
163 notebookTracker,
164 editorTracker,
165 documentManager,
166 codeMirror
167 );
168 },
169 requires: [
170 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
171 // @ts-expect-error
172 jupyterapp._pluginMap['@jupyterlab/notebook-extension:tracker'].provides,
173 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
174 // @ts-expect-error
175 jupyterapp._pluginMap['@jupyterlab/fileeditor-extension:plugin'].provides,
176 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
177 // @ts-expect-error
178 jupyterapp._pluginMap['@jupyterlab/docmanager-extension:plugin'].provides,
179 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
180 // @ts-expect-error
181 jupyterapp._pluginMap['@jupyterlab/codemirror-extension:codemirror'].provides,
182 ],
183 };
184}

Callers 1

script.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected