提交 18b40451 编写于 作者: R rebornix

remove unused typings

上级 8aac73bd
......@@ -24,6 +24,9 @@ export interface NotebookLayoutInfo {
export interface INotebookEditor {
viewType: string | undefined;
viewModel: NotebookViewModel | undefined;
focus(): void;
getLayoutInfo(): NotebookLayoutInfo;
getOutputRenderer(): OutputRenderer;
insertEmptyNotebookCell(cell: CellViewModel, type: CellKind, direction: 'above' | 'below'): Promise<void>;
deleteNotebookCell(cell: CellViewModel): void;
editNotebookCell(cell: CellViewModel): void;
......@@ -34,8 +37,6 @@ export interface INotebookEditor {
createInset(cell: CellViewModel, output: IOutput, shadowContent: string, offset: number): void;
removeInset(output: IOutput): void;
triggerScroll(event: IMouseWheelEvent): void;
getLayoutInfo(): NotebookLayoutInfo;
getOutputRenderer(): OutputRenderer;
/**
* Reveal cell into viewport.
......@@ -72,10 +73,8 @@ export interface INotebookEditor {
* The notebook is virtualized and this method should be called to create/delete editor decorations safely.
*/
changeDecorations(callback: (changeAccessor: IModelDecorationsChangeAccessor) => any): any;
focus(): void;
showFind(): void;
hideFind(): void;
focusNext(nextMatch: CellFindMatch, matchIndex: number): void;
}
export interface CellRenderTemplate {
......
......@@ -476,12 +476,6 @@ export class NotebookEditor extends BaseEditor implements INotebookEditor {
//#endregion
//#region Find Delegate
focusNext(match: CellFindMatch, matchIndex: number) {
let cell = match.cell;
let index = this.notebookViewModel!.viewCells.indexOf(cell);
this.list?.revealInView(index);
}
public showFind() {
this.findWidget.reveal();
......
......@@ -115,9 +115,6 @@ export class TestNotebookEditor implements INotebookEditor {
hideFind(): void {
throw new Error('Method not implemented.');
}
focusNext(nextMatch: CellFindMatch, matchIndex: number): void {
throw new Error('Method not implemented.');
}
revealInView(cell: CellViewModel, offset?: number | undefined): void {
throw new Error('Method not implemented.');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册