map handles to cellrange in UI.

This commit is contained in:
rebornix
2021-02-21 22:24:20 -08:00
parent 1e0adc0da5
commit dea95d3e4f
15 changed files with 238 additions and 83 deletions

View File

@@ -326,6 +326,10 @@ export class ExtHostNotebookDocument extends Disposable {
this._emitter.emitCellMetadataChange(event);
}
getCellFromIndex(index: number): ExtHostCell | undefined {
return this._cells[index];
}
getCell(cellHandle: number): ExtHostCell | undefined {
return this._cells.find(cell => cell.handle === cellHandle);
}