notebookeditor.selections

This commit is contained in:
rebornix
2021-02-19 17:03:33 -08:00
parent 5d2c9bf299
commit e8966ecaa9
13 changed files with 81 additions and 29 deletions

View File

@@ -330,6 +330,10 @@ export class ExtHostNotebookDocument extends Disposable {
return this._cells.find(cell => cell.handle === cellHandle);
}
getCellIndexFromHandle(cellHandle: number): number | undefined {
return this._cells.findIndex(cell => cell.handle === cellHandle);
}
getCellIndex(cell: ExtHostCell): number {
return this._cells.indexOf(cell);
}