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

Commit C# completion on colon #12852

Merged
merged 2 commits into from
Aug 11, 2016
Merged

Commit C# completion on colon #12852

merged 2 commits into from
Aug 11, 2016

Conversation

rchande
Copy link
Contributor

@rchande rchande commented Aug 1, 2016

Tagging @dotnet/roslyn-ide for review

{
internal class CSharpCompletionItemRules
{
public static readonly CompletionItemRules Instance = CompletionItemRules.Default
Copy link
Member

Choose a reason for hiding this comment

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

Comment this.

@CyrusNajmabadi
Copy link
Member

Thinking more on this, this doesn't seem like the right way to fix this issue. Instead, it should be hte NamedParameterCompletionPRovider taht returns items that have this letter removed from their filter set. Also, have you fixed up VB and tested that as well?

@rchande
Copy link
Contributor Author

rchande commented Aug 3, 2016

@CyrusNajmabadi Done. Per our slack conversation I don't think there are any changes to be made to VB.

@CyrusNajmabadi
Copy link
Member

@rchande Cool.

}
}
";
await VerifyProviderCommitAsync(markup, "args:", expected, ':', "arg");
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi Aug 3, 2016

Choose a reason for hiding this comment

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

Can you actually add a COmpletionHandlerTest test. I don't trust these tests for actually doing commit properly. The completion provider test harness (which you're using here) should really only be used for asking "what completion items should be offered". If you want to test Commit, you really need to go through the CommandHandler test as they're the only ones that exercise the full stack properly.

@CyrusNajmabadi
Copy link
Member

Add the test and fix the nits, and 👍

@Pilchie
Copy link
Member

Pilchie commented Aug 8, 2016

Agree with both of @CyrusNajmabadi's points above.

@rchande rchande merged commit b43fd8e into dotnet:master Aug 11, 2016
@rchande rchande deleted the fixColonCommit branch August 11, 2016 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants