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

Add tooltip to completions ParameterValue #1152

Conversation

TylerLeonhardt
Copy link
Member

Moved it to a switch so it's easier to read. This will show the tooltips for ParameterValue

fixes PowerShell/vscode-powershell#2405

detailString = completionDetails.ToolTipText;
break;
case CompletionType.ParameterName:
// Look for type encoded in the tooltip for parameters and variables.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, now you are just looking at parameter names (not variables). Should this also case on Variable?

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variables is on line 207?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I need to move it down gotcha

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed!

…Leonhardt/PowerShellEditorServices into handle-parameter-value-completions
@TylerLeonhardt
Copy link
Member Author

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

Issues
======
- Added 1
           

Complexity increasing per file
==============================
- src/PowerShellEditorServices/Services/TextDocument/Handlers/CompletionHandler.cs  1
         

See the complete overview on Codacy

@TylerLeonhardt TylerLeonhardt merged commit f572569 into PowerShell:master Jan 10, 2020
@TylerLeonhardt TylerLeonhardt deleted the handle-parameter-value-completions branch January 10, 2020 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom tabexpansion tooltip shows in ISE but not VS Code
3 participants