MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / runInteractiveWindowInput

Function runInteractiveWindowInput

src/test/datascience/helpers.ts:234–244  ·  view source on GitHub ↗
(
    code: string,
    interactiveWindow: InteractiveWindow,
    newCellCount: number
)

Source from the content-addressed store, hash-verified

232}
233
234export async function runInteractiveWindowInput(
235 code: string,
236 interactiveWindow: InteractiveWindow,
237 newCellCount: number
238) {
239 await insertIntoInputEditor(code, interactiveWindow);
240 await vscode.commands.executeCommand('workbench.action.focusSecondEditorGroup');
241 await vscode.commands.executeCommand('interactive.input.focus');
242 await vscode.commands.executeCommand('interactive.execute');
243 return waitForLastCellToComplete(interactiveWindow, newCellCount, false);
244}
245
246export async function waitForLastCellToComplete(
247 interactiveWindow: InteractiveWindow,

Calls 3

insertIntoInputEditorFunction · 0.85
executeCommandMethod · 0.65

Tested by

no test coverage detected