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

Use new CompletionItem label API #4648

Merged
merged 3 commits into from
Jul 12, 2021
Merged

Conversation

333fred
Copy link
Member

@333fred 333fred commented Jul 11, 2021

1.58 brought a new completion item API that allows us to specify a description for the completion label. This will give us an experience more akin to VS for import completion, where the namespace of the item is always displayed, right-aligned and slightly faded, in the completion list. Anything else that Roslyn adds to InlineDescription here will automatically show up, but import completion is the only thing that uses it for now.

Closes #4640.

@333fred
Copy link
Member Author

333fred commented Jul 11, 2021

This is what it looks like:
image

/cc @dibarbet, hopefully VS itself will take advantage of the 3.17 LSP API soon so you can replicate over there.

@333fred 333fred requested a review from JoeRobich July 11, 2021 06:31
Copy link
Contributor

@filipw filipw left a comment

Choose a reason for hiding this comment

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

very cool! 👏

@JoeRobich JoeRobich merged commit 1c9f03c into dotnet:master Jul 12, 2021
@333fred 333fred deleted the completion-details branch July 12, 2021 18:16
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.

Update to 1.58 and take advantage of the new completion labels
3 participants