mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Fix test failure and improve visibility check (#210128)
* Fix test failure when UI is small * oops
This commit is contained in:
@@ -127,6 +127,9 @@ async function addCellAndRun(code: string, notebook: vscode.NotebookDocument) {
|
||||
});
|
||||
|
||||
function lastCellIsVisible(notebookEditor: vscode.NotebookEditor) {
|
||||
if (!notebookEditor.visibleRanges.length) {
|
||||
return false;
|
||||
}
|
||||
const lastVisibleCell = notebookEditor.visibleRanges[notebookEditor.visibleRanges.length - 1].end;
|
||||
return notebookEditor.notebook.cellCount === lastVisibleCell;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user