mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 21:41:46 +01:00
re #93070. test for command arguments.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user