Skip to content

Run current line or selected lines from playground #268

Open
@sunliangqin

Description

@sunliangqin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions