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

Signature help should use SymbolDisplayMiscellaneousOptions.AllowDefaultLiteral #47364

Closed
Youssef1313 opened this issue Sep 2, 2020 · 5 comments · Fixed by #47552
Closed
Assignees
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-IntelliSense Completion, Signature Help, Quick Info
Milestone

Comments

@Youssef1313
Copy link
Member

image

It's less noisy if IntelliSense just shows default instead of default(CancellationToken).

@sharwell
Copy link
Member

sharwell commented Sep 2, 2020

This was claimed to be fixed by #33056 for the 16.1 release.

@sharwell sharwell added Area-IDE IDE-IntelliSense Completion, Signature Help, Quick Info Regression labels Sep 2, 2020
@jinujoseph jinujoseph added this to the 16.8 milestone Sep 8, 2020
@jinujoseph
Copy link
Contributor

@Youssef1313 will you be able to share specific steps to reproduce this ?

@jinujoseph jinujoseph added Concept-Continuous Improvement Need More Info The issue needs more information to proceed. labels Sep 8, 2020
@Youssef1313
Copy link
Member Author

@jinujoseph I think any call to GetSyntaxRootAsync for example should reproduce this (or any method taking an optional CancellationToken).

@Youssef1313
Copy link
Member Author

Youssef1313 commented Sep 9, 2020

using System;
using System.Threading;

namespace ConsoleApp19
{
    class Program
    {
        static void SomeMethod(CancellationToken token = default) => throw new NotImplementedException();

        static void Main(string[] args)
        {
            SomeMethod /* Write a parentheses after "SomeMethod" and see the result. */
        }
    }
}

gif

@sharwell, Note the difference in behavior between hovering on the method and the completion for the parameter. The PR you referred to may have only fixed the hovering. Hence, this might not be a regression if the completion for parameter wasn't fixed in the first place. But I'm not 100% sure. Just wanted to note this.

@sharwell sharwell changed the title Relax IntelliSense noise for default Signature help should use SymbolDisplayMiscellaneousOptions.AllowDefaultLiteral Sep 9, 2020
@sharwell
Copy link
Member

sharwell commented Sep 9, 2020

Thanks for the update. It appears that Quick Info renders symbols with SymbolDisplayMiscellaneousOptions.AllowDefaultLiteral, but Signature Help does not. We would certainly accept a pull request to update the latter to start using this flag as well.

@sharwell sharwell added help wanted The issue is "up for grabs" - add a comment if you are interested in working on it and removed Need More Info The issue needs more information to proceed. Regression labels Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-IntelliSense Completion, Signature Help, Quick Info
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants