(interactiveWindowProvider: IInteractiveWindowProvider, file: vscode.TextDocument)
| 184 | } |
| 185 | |
| 186 | export async function runCurrentFile(interactiveWindowProvider: IInteractiveWindowProvider, file: vscode.TextDocument) { |
| 187 | await vscode.window.showTextDocument(file, vscode.ViewColumn.One); |
| 188 | const activeInteractiveWindow = (await interactiveWindowProvider.getOrCreate(file.uri)) as InteractiveWindow; |
| 189 | await waitForInteractiveWindow(activeInteractiveWindow); |
| 190 | await vscode.commands.executeCommand(Commands.RunAllCells, file.uri); |
| 191 | return activeInteractiveWindow; |
| 192 | } |
| 193 | |
| 194 | export async function closeInteractiveWindow(interactiveWindow: IInteractiveWindow) { |
| 195 | if (interactiveWindow.notebookDocument) { |
no test coverage detected