Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run current line or selected lines from playground #268

Open
sunliangqin opened this issue Feb 23, 2021 · 1 comment
Open

Run current line or selected lines from playground #268

sunliangqin opened this issue Feb 23, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@sunliangqin
Copy link

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'"
}
@alenakhineika alenakhineika added the enhancement New feature or request label Mar 15, 2021
@alenakhineika
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants