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

Show tooltip for comparison operators #1294

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ private static CompletionItem CreateCompletionItem(
{
detailString = matches[0].Groups[1].Value;
}
// The comparison operators (-eq, -not, -gt, etc) are unfortunately fall into ParameterName
// but they don't have a type associated to them. This allows those tooltips to show up.
else if (!string.IsNullOrEmpty(completionDetails.ToolTipText))
{
detailString = completionDetails.ToolTipText;
}
break;
case CompletionType.Command:
// For Commands, let's extract the resolved command or the path for an exe
Expand Down