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

Unhelpful/annoying intellisense suggestion when calling method with params if the argument is an expression/func #73257

Open
vsfeedback opened this issue Apr 29, 2024 · 0 comments

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It’s more difficult to complete my work]
I have the following method:
public void AddOldValues(params Expression<Func<T, object>>[] fields)

The idea being to call it like this with an object:

using var auditScope = client.Audit.Begin(dbCourse); // public AuditScope<T> Begin<T>(T entity)
auditScope.AddOldValues(
    c => c.Field1,
    c => c.Field2,
    c => c.Field3
);
  

Very annoyingly, intellisense doesn’t pick up that I’m trying to write a lambda expression so whenever I type ‘c’ it tries to autocomplete an existing member name that happens to begin with c (or sometimes ‘char’)

In order to actually write a new line like the above, I need to:

  1. Type c
  2. Press esc to close intellisense
  3. Write =>c
  4. Press esc again
  5. Write the rest (. FieldName)

Please fix this as it is incredibly annoying…!


Original Comments

Feedback Bot on 4/27/2024, 09:39 PM:

(private comment, text removed)


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 29, 2024
@genlu genlu added Bug and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 30, 2024
@genlu genlu added this to the Backlog milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants