提交 6ed02012 编写于 作者: J Johannes Rieken

first reveal a cell, then check for its editor

上级 98c180c5
......@@ -283,7 +283,7 @@ export class NotebookEditor extends BaseEditor implements INotebookEditor {
if (options instanceof NotebookEditorOptions && options.cellOptions) {
const cellOptions = options.cellOptions;
const cell = this.notebookViewModel!.viewCells.find(cell => isEqual(cell.cell.uri, cellOptions.resource));
if (cell && this.renderedEditors.has(cell)) {
if (cell) {
this.revealInCenterIfOutsideViewport(cell);
const editor = this.renderedEditors.get(cell)!;
if (editor) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册