-
Notifications
You must be signed in to change notification settings - Fork 675
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
executeWorkspaceSymbolProvider returns SymbolKind.Class instead of SymbolKind.Interface for C# interfaces #1907
Comments
@craig006 Good find--thanks for filing this. |
@akshita31 Here's another one for you. |
@akshita31 @rchande I created a fix here: These are all the vscode.SymbolKinds that I could reproduce. Omnisharp never returned types like "TypeParameter", "Variable" etc. Let me know if you would like me to create a PR somewhere |
Thanks @craig006. We'll take a look. |
Marking this as "resolved fixed", but I think there was a desire to have Delegate return SymbolKind.Method as well. |
Actually, I don't think SymbolKind.Method is the right choice. We don't do that in the completion list either: https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/features/completionItemProvider.ts#L111. The idea is that delegates are types and probably shouldn't be confused with methods. @rchande, what do you think? If you agree, I think this can be closed. |
@DustinCampbell I concur. |
Environment data
dotnet --info
output:VS Code version: 1.18.1
C# Extension version: 1.13.0
Steps to reproduce
Execute
Run this code from an extension in a C# project in VS Code:
Expected behavior
The SymbolInformation returned for symbol
ISomeInterface
has its kind property set to SymbolKind.Interfacei.e.
result[0].kind should equal SymbolKind.Interface
Actual behavior
The SymbolInformation returned for symbol
ISomeInterface
has its kind property set to SymbolKind.Classi.e.
result[0].kind is set to SymbolKind.Class
Definition of ISomeInterface
The text was updated successfully, but these errors were encountered: