UNPKG

@jupyter-lsp/code-jumpers

Version:

Implementation underlying the jump to definition functionality in JupyterLab-LSP

22 lines (21 loc) 857 B
import { CodeEditor } from '@jupyterlab/codeeditor'; import { IDocumentManager } from '@jupyterlab/docmanager'; import { Notebook, NotebookPanel } from '@jupyterlab/notebook'; import { IGlobalPosition, ILocalPosition } from '../positions'; import { CodeJumper } from './jumper'; export declare class NotebookJumper extends CodeJumper { notebook: Notebook; widget: NotebookPanel; constructor(notebookWidget: NotebookPanel, documentManager: IDocumentManager); get editors(): CodeEditor.IEditor[]; jump(position: ILocalPosition): void; getOffset(position: CodeEditor.IPosition, cell?: number): number; getCurrentPosition(): IGlobalPosition; getJumpPosition(position: CodeEditor.IPosition, inputNumber: number): { token: { offset: number; value: string; }; index: number; }; }