re #93070. test for command arguments.

This commit is contained in:
rebornix
2020-07-13 10:52:52 -07:00
parent d17550f4a8
commit 5e96337121
4 changed files with 38 additions and 1 deletions

View File

@@ -93,4 +93,15 @@ export function smokeTestActivate(context: vscode.ExtensionContext): any {
return;
},
}));
context.subscriptions.push(vscode.commands.registerCommand('vscode-notebook-tests.debugAction', async (cell: vscode.NotebookCell) => {
if (cell) {
const edit = new vscode.WorkspaceEdit();
const fullRange = new vscode.Range(0, 0, cell.document.lineCount - 1, cell.document.lineAt(cell.document.lineCount - 1).range.end.character);
edit.replace(cell.document.uri, fullRange, 'test');
await vscode.workspace.applyEdit(edit);
} else {
throw new Error('Cell not set correctly');
}
}));
}