Skip to content

Commit

Permalink
Update dependencies in package-lock.json (#14578)
Browse files Browse the repository at this point in the history
* Update dependencies in package-lock.json

* Add noop import and handle promise rejections in
maximizeEditorGroup and collapseAllCellInputs
commands.
  • Loading branch information
DonJayamanne authored Oct 27, 2023
1 parent 971cac0 commit f8a0ff9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 33 deletions.
63 changes: 33 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { initializeWidgetComms, Utils } from './commUtils';
import { WidgetRenderingTimeoutForTests } from './constants';
import { getTextOutputValue } from '../../../kernels/execution/helpers';
import { isWeb } from '../../../platform/common/utils/misc';
import { noop } from '../../core';

const templateRootPath: Uri =
workspace.workspaceFolders && workspace.workspaceFolders.length > 0
Expand Down Expand Up @@ -133,8 +134,8 @@ suite('Standard IPyWidget Tests @widgets', function () {
// and the output is not visible, then it will not get rendered & the tests will fail. The tests inspect the rendered HTML.
// Solution - maximize available real-estate by hiding the output panels & hiding the input cells.
await commands.executeCommand('workbench.action.closePanel');
await commands.executeCommand('workbench.action.maximizeEditorGroup');
await commands.executeCommand('notebook.cell.collapseAllCellInputs');
await commands.executeCommand('workbench.action.maximizeEditorGroup').then(noop, noop);
await commands.executeCommand('notebook.cell.collapseAllCellInputs').then(noop, noop);
comms = await initializeWidgetComms(disposables);

vscodeNotebook = api.serviceContainer.get<IVSCodeNotebook>(IVSCodeNotebook);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { GlobalStateKeyToTrackIfUserConfiguredCDNAtLeastOnce } from '../../../no
import { initializeWidgetComms, Utils } from './commUtils';
import { isWeb } from '../../../platform/common/utils/misc';
import { getTextOutputValue } from '../../../kernels/execution/helpers';
import { noop } from '../../core';

[true, false].forEach((useCDN) => {
/* eslint-disable @typescript-eslint/no-explicit-any, no-invalid-this */
Expand Down Expand Up @@ -80,7 +81,7 @@ import { getTextOutputValue } from '../../../kernels/execution/helpers';
// and the output is not visible, then it will not get rendered & the tests will fail. The tests inspect the rendered HTML.
// Solution - maximize available real-estate by hiding the output panels & hiding the input cells.
await commands.executeCommand('workbench.action.closePanel');
await commands.executeCommand('workbench.action.maximizeEditorGroup');
await commands.executeCommand('workbench.action.maximizeEditorGroup').then(noop, noop);
comms = await initializeWidgetComms(disposables);

vscodeNotebook = api.serviceContainer.get<IVSCodeNotebook>(IVSCodeNotebook);
Expand Down

0 comments on commit f8a0ff9

Please sign in to comment.