vscode
vscode copied to clipboard
Run current line or selected lines from playground
First of all, thank you for building this great extension.
To give you some background, the PowerShell extension has a keyboard binding "F8" enables user to run the selected text or the current line if there is no text selected.
I am trying to bring the similar behavior to the .mongodb file by adding the keyboard binding below. However, the command "runSelectedPlaygroundBlocks" shows a notification "please select one or more lines in playground" when there is no text selected. Is it possible to just run the current line in this case?
{
"key": "f8",
"command": "mdb.runSelectedPlaygroundBlocks",
"when": "editorTextFocus && editorLangId == 'mongodb'"
}
Hey, thank you for trying the extension! Could you please create a feature request in our feedback forum?