Dont suggest completions for non-existent method/attributes if the available attributes are known #7754
Replies: 4 comments 5 replies
-
|
I agree, this is very annoying. If I have a method public class Transaction {
public int TransactionId {get; set;}
public decimal Amount {get; set;}
}When I type var trans = GetTransaction(1);
var amount = trans.I dont expect co-pilot to suggest Its actually slowing me down working with it at the moment. |
Beta Was this translation helpful? Give feedback.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
|
Yep this problem still exists and makes working with the copilot kind of pointless because my ide autocompletion is faster and shows only the methods or attributes that exist. |
Beta Was this translation helpful? Give feedback.
-
|
4 years later and it's still doing it |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The main scenario where copilot slows me down is when I'm trying to access, say, a class method. I start typing the start of the method I want (say
obj->Get...). Normally in my IDE it will show me the actual list of "Get" methods available for the class and as I type I'm essentially searching. However, I don't get those suggestions when copilot takes over and tries to suggest the method name (often incorrectly for the fist access of the method).I wonder if there's a way to restrict the suggestions in such a scenario to actual method/attributes that exist for the given object if that information is available? I don't know if it's possible, but I think it would be nice.
Beta Was this translation helpful? Give feedback.
All reactions