★ wanayoo — archive 1999 https://github.com/PowerShell/PowerShellEditorServices/pull/1185Nouvelle recherche | Portail wanayoo
Skip to content
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

WIP: Add new 'powerShell/getCommandInformation' message #1185

Draft
wants to merge 1 commit into
base: master
from

Conversation

@corbob
Copy link
Contributor

@corbob corbob commented Feb 11, 2020

This adds a new getCommandInformation message used by the Command Explorer to get the details of a given command.

Pre-omnisharp we were optionally sending the name of a command in the powerShell/getCommand message, and had code to get information for a single command in that instance. It appears this was removed.I am split on if it's better being separate handlers. On the one hand, it seems it might be easier to understand being separate handlers, but it adds code duplication that might not be needed.

If kept as separate messages as shown here, there is some code cleanup we can do in the getCommand message handler as it's currently sending back values that are guaranteed to be empty and can be removed.

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Mar 4, 2020

I think I'd want them in the same handler. Since they both return the same data. It'd be a smaller change too :)

@corbob corbob force-pushed the corbob:CommandExplorerv2 branch from 78ea61d to d08af27 May 12, 2020
@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented May 12, 2020

Codacy Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- src/PowerShellEditorServices/Services/PowerShellContext/Handlers/GetCommandHandler.cs  1
         

See the complete overview on Codacy

Copy link

@BoryaBorya BoryaBorya left a comment

Duplicate of #

@@ -17,7 +17,10 @@ namespace Microsoft.PowerShell.EditorServices.Handlers
[Serial, Method("powerShell/getCommand")]

This comment has been minimized.

@BoryaBorya

BoryaBorya Jun 23, 2020

Suggested change
[Serial, Method("powerShell/getCommand")]
[Serial, Method("powerShell/getCommand")]
@corbob corbob force-pushed the corbob:CommandExplorerv2 branch from d08af27 to e80d2f6 Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.