vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Run current line or selected lines from playground

Open sunliangqin opened this issue 3 years ago • 1 comments

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'"
}

sunliangqin avatar Feb 23 '21 07:02 sunliangqin

Hey, thank you for trying the extension! Could you please create a feature request in our feedback forum?

alenakhineika avatar Jul 21 '21 13:07 alenakhineika