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

Fix missing signatures for some cases #1290

Merged
merged 9 commits into from
Nov 2, 2018

Conversation

SirIntruder
Copy link
Contributor

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

Copy link
Member

@filipw filipw left a 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

@DustinCampbell
Copy link
Contributor

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.

@DustinCampbell
Copy link
Contributor

@SirIntruder: A public signature help API for Roslyn is on my plate: dotnet/roslyn#3540

Copy link
Member

@david-driscoll david-driscoll left a 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 :shipit:

}
}";
var actual = await GetSignatureHelp(filename, source);
Assert.NotEmpty(actual.Signatures);
Copy link
Member

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);
Copy link
Member

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.

Copy link
Member

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.

@SirIntruder
Copy link
Contributor Author

@david-driscoll New enhanced assert now checks if signature list contains one known valid signature (right name, zero parameters). Would this be enough?

@filipw filipw dismissed david-driscoll’s stale review November 1, 2018 07:57

the requested change was implemented

@david-driscoll david-driscoll merged commit 713bd9d into OmniSharp:master Nov 2, 2018
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.

5 participants