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

Map all symbol kinds to vscode.SymbolKinds #1911

Merged
merged 3 commits into from
Jan 3, 2018

Conversation

craig006
Copy link
Contributor

@craig006 craig006 commented Dec 6, 2017

Fixes this issue:
#1907

Copy link

@rchande rchande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for your contribution!

@rchande
Copy link

rchande commented Dec 6, 2017

@akshita31 Before we merge this, do you mind pulling the branch and verifying the behavior?

@ghost ghost removed the cla-not-required label Dec 7, 2017
@TheRealPiotrP
Copy link

@rchande how do we add a test for this behavior?

@rchande
Copy link

rchande commented Dec 11, 2017

@TheRealPiotrP Well, if we had per-feature unit tests, that would be a good place to add these tests. However, we're doing approximately the same mapping in completionItemProvider.ts, so this might be a good time to extract out a common helper and add tests for it in a new file under unitTests. @craig006 Any interest in doing that work, too?

@akshita31
Copy link
Contributor

@rchande The type "Delegate" is missing here. It is not present in SymbolKind as well. Should we go ahead and add that ?

@rchande
Copy link

rchande commented Dec 14, 2017

@akshita31 Sure. What icon does it show up with now? Note that there's no VSCode icon for "Delegate" https://code.visualstudio.com/docs/extensionAPI/vscode-api#SymbolKind

@akshita31
Copy link
Contributor

Currently it is defaulting to a class type, hence we are getting a symbol for the class only.

@akshita31
Copy link
Contributor

The change does make the functionality a lot better. @craig006 could you add a case for Delegate as well with the return type as SymbolKind.Method ?

@DustinCampbell
Copy link
Member

Assuming @craig006 doesn't have the time at the moment, can we take this PR and make the change @akshita31 suggested separately?

@rchande rchande merged commit 052e3c0 into dotnet:master Jan 3, 2018
@rchande
Copy link

rchande commented Jan 3, 2018

Thanks for your contribution @craig006! This has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants