-
Notifications
You must be signed in to change notification settings - Fork 511
Show-Command like panel #1405
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
Comments
Just putting some thoughts out there so I don't lose them. I've created a project on my fork for this, adding cards for small chunks as I think of them or encounter someone mentioning it. The project is here: https://github.com/corbob/vscode-powershell/projects/1 Unfortunately due to this issue: microsoft/vscode#50062 We may not be able to get searching working just yet. My focus will be around what's available to us today and if we get search/filter in the future then we can work on that. |
@rjmholt, @andschwa, PFB the features missing from the VSC PowerShell extension's Command Explorer, as discussed during the Community call for October 21. 1. Filter by modules2. Search for specific cmdlets3. Fill out specific parameter sets4. Add common parameters5. Insert filled out cmdlet |
Personally I'd really like to see some work put into this extension's API to give the community the tools to provide a separate extension with this functionality. |
If you want Visual Studio Code and PS7 to be successful you need to include this functionality into the plugin. ISE mode and the command bar has been vital to grow my skills (and many others) in PowerShell since its introduction. It allows one to quickly filter commands and find examples how to use them correctly. By excluding this functionality you are increasing the barrier of entry for PowerShell 7. If you are experienced with PowerShell then VSC is fine and you can get by. I am constantly teaching inexperienced staff on my team on how useful PowerShell can be to simplify repetitive operational tasks and encourage them to get familiar with it. However I find the VSC way too "opaque" and usually just fall back to the original ISE. For example... in the new way... how can one filter all the commands (Visually) related to SharePoint Online in the Command Explorer? In ISE I could just type "SPO" or filter the module to "Microsoft.Online.SharePoint.PowerShell". Being able to browse through this list and click on each command helps one learn the capabilities quickly. I remember sitting through a lecture during Ignite\TechEd in the largest theater when a lead developer was demonstrating PowerShell's use with Azure and had to do this live because the command he was trying to demo was not working right and said "Even the creator has to look things up". (Paraphrasing... it was years ago.) You need to keep your "newbie" hats on when releasing tools. ISE was the perfect "Newbie" tool and is still far superior till what is available in 7 right now. However... don't get me wrong... I love where you are going with VSC. I really like how if you do know the command you want to use... it displays your options as you type. Very slick. |
I decided to take a stab at this, and I built a command info view panel that works fairly well, aside from styling and probably some edge cases. I think I agree that the extension API should be improved so this could be implemented in a separate extension, but if you'd like this to be part of the main extension, then I'd be happy to clean this up and submit a PR! |
Looks good, @n0spaces. Can one filter the cmdlets by module name? |
No, I'm just focusing on the Command Info panel for now, although adding a filter to the Command Explorer sounds pretty straightforward. Worth noting that you can exclude modules in the configuration thanks to #1686, but you can't filter in the UI yet. |
Summary of the new feature
ISE has a pane for Show-Command. It would be good to have something similar to this in VS Code.
Numerous users have expressed the lack of this feature for why they don't use VS Code for PowerShell.
Proposed technical implementation details (optional)
A side bar view for this seems to make the most sense.
The text was updated successfully, but these errors were encountered: