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

[C#] Intellisense for the common operations are not user friendly (or irrelevant) and not displaying in correct order. #99

Closed
aeschli opened this issue Mar 17, 2016 · 2 comments

Comments

@aeschli
Copy link
Contributor

aeschli commented Mar 17, 2016

From @v-pavanp on March 17, 2016 4:36

  • VSCode Version: 0.10.12-alpha
  • OS Version: Windows10

Steps to Reproduce:

  1. Launch app and open any folder which contains C# files.
  2. Open any .cs file and verify all the recommended extensions are installed to get intellisense.
  3. Try to add some code for File IO operation without adding any namespace for IO operation. Like:
    public GlobalIntakeToolTokenCache(string userId)
    {
    File
    }
  4. Use intellisens to fix error.
  5. Verify all the available options and compare them with visual studio.
    visualstudio-vscode

Actual:
1 The order of the suggestions in the list are not displaying according to user preference. In my case I am expecting It should ask for adding the namespace System.IO.
2. When I selected second option form the list "Create field" then it is added a File variable and didn't fix the issue.
3. When I selected the forth option from the list "Create property" then it is added property but didn't fix the issue.
4. When I selected the fifth options "Declare local variable then it is creating a new variable with var keyword and considering my declare type as a class File. It looks like: var file = File;

Expected: System should be smart enough to display the common actions first. Like in my case when I type a Keyword File then my intension is to use C# inbuilt APIs.

Copied from original issue: microsoft/vscode#4347

@DustinCampbell
Copy link
Member

I took a look at the way code fixes and refactorings are ordered in OmniSharp, and it doesn't look like its very sensible. I'll take a look at this.

@DustinCampbell
Copy link
Member

This should be much better in 1.7 (to be released soon). It's not perfect, but we've done a lot of work here to improve the experience around the ordering of code actions in the light bulb and to only show those code actions that are relevant.

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