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

[BUG] Autocomplete always adds the first using #6153

Closed
arkalyanms opened this issue Aug 16, 2023 · 2 comments
Closed

[BUG] Autocomplete always adds the first using #6153

arkalyanms opened this issue Aug 16, 2023 · 2 comments
Assignees
Milestone

Comments

@arkalyanms
Copy link
Member

From vscode-dotnettools created by RobertOstermann: microsoft/vscode-dotnettools#298

Describe the Issue

When using the autocomplete feature selecting an option adds a using statement to the top of the file. If there are multiple options with the same name, it is adding the using statement for the top option.

image

image

Steps To Reproduce

Attempt to autocomplete something with multiple options of the same name. In my example I attempted to add the JsonIgnore annotation and even though I selected the second option (Newtonsoft.Json) the using System.Text.Json.Serialization statement was added.

Expected Behavior

The correct using statement should be added.

Environment Information

  • VSCode Version: 1.81.0-insider
  • C# Dev Kit Version: v0.3.18
  • Windows 10 using WSL
@genlu
Copy link
Member

genlu commented Aug 17, 2023

The fix and the fix for the fix should be in the latest C# extension. @RobertOstermann could you please update the extension and try again? Thanks!

@genlu genlu closed this as completed Aug 17, 2023
@RobertOstermann
Copy link

@genlu that solved the issue. Thanks!

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

3 participants