-
Notifications
You must be signed in to change notification settings - Fork 416
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
Fix missing signatures for some cases #1290
Fix missing signatures for some cases #1290
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.
since Roslyn 2.9.0, Quick Info API is there dotnet/roslyn#20554
@filipw: yeah, I've been meaning to go and use that in OmniSharp. Still trying to find time to make a public Signature Help API. |
@SirIntruder: A public signature help API for Roslyn is on my plate: dotnet/roslyn#3540 |
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.
Once the tests are enhanced I'm fine to
} | ||
}"; | ||
var actual = await GetSignatureHelp(filename, source); | ||
Assert.NotEmpty(actual.Signatures); |
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.
It would be great if this could also assert that one of the intended signatures exists.
} | ||
}"; | ||
var actual = await GetSignatureHelp(filename, source); | ||
Assert.NotEmpty(actual.Signatures); |
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.
It would be great if this could also assert that one of the intended signatures exists.
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.
This way we can avoid potential signatures being removed when they shouldn't have been.
@david-driscoll New enhanced assert now checks if signature list contains one known valid signature (right name, zero parameters). Would this be enough? |
the requested change was implemented
A fix for dotnet/vscode-csharp#2495. Provides missing signature help for compiler literals and typeof(T)... expressions. Added two tests for those cases.
bonus question: will roslyn cover the whole signature service soon? it sounds like something that should be handled out-of-the-box