Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Mar 13, 2024
1 parent 9c566a7 commit 1417323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
}

selectOutputContent(cell: ICellViewModel) {
this._webview?.selectOutputContents(cell.id);
this._webview?.selectOutputContents(cell);
}

onWillHide() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1681,18 +1681,13 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
this.webview?.focus();
}

selectOutputContents(cellId: string) {
selectOutputContents(cell: ICellViewModel) {
if (this._disposed) {
return;
}
const cell = this.notebookEditor.getCellById(cellId);
if (!cell || !cell.outputIsFocused) {
return;
}

this._sendMessageToWebview({
type: 'select-output-contents',
cellOrOutputId: (cell as ICellViewModel).focusedOutputId || cellId,
cellOrOutputId: (cell as ICellViewModel).focusedOutputId || cell.id,
alternateId: cell.outputsViewModels.length ? cell.outputsViewModels[0].model.outputId : undefined
});
}
Expand Down

0 comments on commit 1417323

Please sign in to comment.