-
Notifications
You must be signed in to change notification settings - Fork 234
Add functionality to allow a Show-Command like panel in VS Code #697
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
Conversation
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.
I'm sooooooo excited to get this in :)
src/PowerShellEditorServices.Protocol/LanguageServer/GetCommandsRequest.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices.Protocol/LanguageServer/GetCommandsRequest.cs
Outdated
Show resolved
Hide resolved
@corbob Does this still need the WIP tag? Or ready to review? |
@rjmholt I believe we're ready to review. I was mostly holding out to finish documenting the request and message classes which I've added now. works on my 💻 🚢 it! |
src/PowerShellEditorServices.Protocol/LanguageServer/GetCommandsRequest.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices.Protocol/LanguageServer/GetCommandsRequest.cs
Outdated
Show resolved
Hide resolved
Sorry it took me so long to review @corbob. Everything looks really good, I just left a couple of comments |
I believe I've addressed most of the comments with the latest commit, but there is still the question of a few that I replied to. |
src/PowerShellEditorServices.Protocol/LanguageServer/GetCommandsRequest.cs
Outdated
Show resolved
Hide resolved
Changing PR back to WIP to address the refactoring @tylerl0706 suggested. |
@corbob is this ready for us to take a look? I have a good feeling :) |
I think I've got most of the stuff. Only thing I'm not 100% on is some of the comment based documentation parts. |
@corbob it looks like there are a couple comments still in this PR. Can you take a look and see if you've covered them and resolve them/comment on them? |
Return all commands but aliases. We're returning the same as show-command
Sorted in PowerShell seems to have a negligible performance cost. This benefits us greatly as it means we don't need to sort in TypeScript. We can still sort if we want, but it's the default sort.
>> Refactor into a single command. If nothing is passed, it will return all objects.
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.
ok this is super close. Address our couple comments and this is ready for sure
src/PowerShellEditorServices.Protocol/LanguageServer/GetCommandRequest.cs
Outdated
Show resolved
Hide resolved
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.
Just a few nits. Otherwise this is ready
Fully Qualify the namespace of stuffs... Something about Async...
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.
hmmm I can't find anything else to complain about! Oh no! That must mean LGTM 🎉
Really looking forward to getting this in 😄
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!
This is changes required to accommodate the functionality of VS Code Feature Request 1405