UNPKG

@jupyter-lsp/jupyterlab-lsp

Version:

Language Server Protocol integration for JupyterLab

17 lines (16 loc) 971 B
import { CodeEditor } from '@jupyterlab/codeeditor'; import { Document, VirtualDocument, CodeExtractorsManager } from '@jupyterlab/lsp'; import { IForeignCodeExtractorsRegistry } from '../extractors/types'; export declare function mockExtractorsManager(foreignCodeExtractors: IForeignCodeExtractorsRegistry): CodeExtractorsManager; export declare function extractCode(document: VirtualDocument, code: string): { cellCodeKept: string; foreignDocumentsMap: Map<CodeEditor.IRange, Document.IVirtualDocumentBlock>; }; interface IDocumentWithRange { range: CodeEditor.IRange; virtualDocument: VirtualDocument; } export declare function getTheOnlyPair(foreignDocumentMap: Map<CodeEditor.IRange, Document.IVirtualDocumentBlock>): IDocumentWithRange; export declare function getTheOnlyVirtual(foreignDocumentMap: Map<CodeEditor.IRange, Document.IVirtualDocumentBlock>): VirtualDocument; export declare function wrapInPythonLines(line: string): string; export {};