Skip to content

Provide F8 Action button on the menu in VS Code, just like the F8 in the PowerShell ISE Menu bar. #2215

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

Closed
kprpg opened this issue Sep 29, 2019 · 4 comments · Fixed by #2224
Labels
Area-UI Issue-Enhancement A feature request (enhancement). Up for Grabs Will shepherd PRs.

Comments

@kprpg
Copy link

kprpg commented Sep 29, 2019

Feedback Request: Like in the PowerShell ISE, can you please provide a “Run Selection (F8)” button, right in the menu in VS code also (see below picture)? This will ease the transition of the workflow one uses in ISE, and enable more easy switch from ISE to Code.

F8-Code

Thanks,
Girish.

@ghost ghost added the Needs: Triage Maintainer attention needed! label Sep 29, 2019
@kprpg kprpg changed the title Provide F8 Action button on the menu, just like the F8 in the PowerShell ISE Menu bar. Provide F8 Action button on the menu in VS Code, just like the F8 in the PowerShell ISE Menu bar. Sep 29, 2019
@SydneyhSmith
Copy link
Collaborator

SydneyhSmith commented Sep 30, 2019

@kprpg thanks for opening this issue, today in VSCode we have F8 run selection capability directly from the key board, available via a "right click" or available via the command palette "Ctrl+Shift+P"--just to clarify is your feature requests for a button directly in the UI? If so this change would likely need to happen at the vscode level (rather than in the PowerShell extension)

@SydneyhSmith SydneyhSmith added Area-UI Issue-Enhancement A feature request (enhancement). Feature: VS Code Request to use or implement a VS Code feature. and removed Needs: Triage Maintainer attention needed! labels Sep 30, 2019
@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Sep 30, 2019

@SydneyhSmith I had @kprpg open this issue - my bad for not clarifying that.

Yes they are asking for an actual button.

Also, it's possible 😄 using a feature called "menus" in VS Code's extension API.

I think we just need to add one of these to the package.json for F8 and then we should be good to go.

"menus": {
      "editor/title": [
        {
          "when": "resourceLangId == powershell",
          "command": "powerShell.runSelection",
          "group": "runcode"
        }
      ]
    }

Since it's not too critical (because of other work having higher priority), let's go ahead and mark this up-for-grabs.

@SydneyhSmith
Copy link
Collaborator

@TylerLeonhardt thanks-- I will update the labels!

@SydneyhSmith SydneyhSmith added Up for Grabs Will shepherd PRs. and removed Feature: VS Code Request to use or implement a VS Code feature. labels Sep 30, 2019
@rjmholt
Copy link
Contributor

rjmholt commented Oct 3, 2019

Also, it's possible

😮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-UI Issue-Enhancement A feature request (enhancement). Up for Grabs Will shepherd PRs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants