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

Added test for constructor returning no snippets when followed by 'other code' #133

Merged
merged 1 commit into from
Nov 18, 2014
Merged

Conversation

bbbscarter
Copy link
Contributor

No description provided.

@nosami
Copy link
Contributor

nosami commented Nov 11, 2014

Ah.. I think this is the same issue as this OmniSharp/omnisharp-brackets#5

The problem is in this function

private static bool IsInstantiating(AstNode nodeUnderCursor)

It doesn't always return true. Not sure what the fix is yet. That method is pretty hacky.

@mispencer
Copy link
Contributor

NRefactory already returns whether the completion should return constructers. I am not sure why we are ignoring it in in favor of our own implemention.

@nosami
Copy link
Contributor

nosami commented Nov 11, 2014

Oooh... Did not know that. Could you link me to some code?
On 11 Nov 2014 19:46, "mispencer" [email protected] wrote:

NRefactory already returns whether the completion should return
constructers.

public ICompletionData CreateTypeCompletionData(IType type, bool showFullName, bool isInAttributeContext, bool addForTypeCreation)

I am not sure why we are ignoring it in in favor of our own implemention.


Reply to this email directly or view it on GitHub
#133 (comment)
.

@nosami
Copy link
Contributor

nosami commented Nov 11, 2014

Sorry.....Just seen your link. I'm on a phone. Don't know why I never
noticed that before. Thanks!!
On 11 Nov 2014 19:46, "mispencer" [email protected] wrote:

NRefactory already returns whether the completion should return
constructers.

public ICompletionData CreateTypeCompletionData(IType type, bool showFullName, bool isInAttributeContext, bool addForTypeCreation)

I am not sure why we are ignoring it in in favor of our own implemention.


Reply to this email directly or view it on GitHub
#133 (comment)
.

@bbbscarter
Copy link
Contributor Author

@mispencer We just tested with that flag and it failed here:

public void Should_add_parentheses_to_class_when_instantiating()

@nosami nosami merged commit 611d1ad into OmniSharp:master Nov 18, 2014
nosami added a commit that referenced this pull request Nov 18, 2014
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.

3 participants