-
Notifications
You must be signed in to change notification settings - Fork 510
Provide Run Selection button in Editor Title Menu #2224
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
Provide Run Selection button in Editor Title Menu #2224
Conversation
@jpogran can you use these svgs (there's a light and dark)? I got some help from @isabelacmor mashing the vscode icons together 😅 |
7c1ad00
to
cfde9ff
Compare
Looks good! Hmm I'm thinking it might be nice to have another button to the left of it that's just the play button, just like the ISE. That can just launch the debugger since that's what F5 does today. @rjmholt @SydneyhSmith what do you think? |
Agreed! |
I still need to checkout this branch and take a look at it, but it looks good so far! |
@jpogran is that something you're interested in taking on? You can just use the play button you had previously and then just look up the command that it needs to execute to start debugging. Let me know if you need help finding the command. I typically find it on the keybinding menu by hovering over the keybinding. |
Sure, will hook that up tomorrow |
This commit adds a editor title menu button for the `powershell.RunSelection` command in the primary navigation group, and a custom `play` icon based on ones from the https://github.com/microsoft/vscode-icons repo. This shows the button in the visible part of the menu when a PowerShell file is open.
cfde9ff
to
99e08fd
Compare
@TylerLeonhardt I registered the command in the |
@jpogran this is looking great to me, thanks for the work! |
package.json
Outdated
@@ -161,10 +161,23 @@ | |||
}, | |||
"category": "PowerShell" | |||
}, | |||
{ | |||
"command": "PowerShell.Run", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpogran is there a reason this can't just be workbench.action.debug.start
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I just had it in my head you need to make a command for anything you were going to use 😅 . Works fine as you suggest
This commit adds a editor title menu button for the `powershell.Run` command which maps to the builtin VS Code Debug start command. It places it in the primary navigation group, and the uses `run` icon from the https://github.com/microsoft/vscode-icons repo. This shows the button in the visible part of the menu when a PowerShell file is open.
99e08fd
to
5905089
Compare
ignore the macOS failure... I need to fix that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! These look awesome and really fit in with VS Code's design
It's great to see the reaction to this, and the two approvals. Is there anything waiting on me to do to get this merged? |
Nope! Thank you for your contribution! People are so pumped for this. |
* Provide Run Selection button in Editor Title Menu This commit adds a editor title menu button for the `powershell.RunSelection` command in the primary navigation group, and a custom `play` icon based on ones from the https://github.com/microsoft/vscode-icons repo. This shows the button in the visible part of the menu when a PowerShell file is open.
PR Summary
This adds a editor title menu button for the
powershell.RunSelection
command in the primary navigation group, and therun
icon from the https://github.com/microsoft/vscode-icons repo.This shows the button in the visible part of the menu when a PowerShell file is open.
This PR is marked as WIP because the icon chosen is the closest approximation I could find in the vscode suggested icon library, but if there is another one that is preferred I can change it to that.
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
x
between the square brackets.Please mark anything not applicable to this PR
NA
.NA
WIP:
to the beginning of the title and remove the prefix when the PR is readyThis PR fixes #2215