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

fixed symbol decoding from completion items #1670

Merged
merged 4 commits into from
Jan 6, 2020

Conversation

filipw
Copy link
Member

@filipw filipw commented Dec 20, 2019

This got broken a while ago - around these changes 1f10506. It was fragile, as it's reflection.

It impacts the quality of some of the completion item driven completions, which we don't use a lot but nevertheless - i.e. object initializer, which were missing symbol information.

fixes dotnet/vscode-csharp#3465

@@ -259,6 +259,7 @@ public MyClass2()

var completions = await FindCompletionsAsync(filename, source);
ContainsCompletions(completions.Select(c => c.CompletionText), "Foo");
ContainsCompletions(completions.Select(c => c.ReturnType), "string");
Copy link
Member Author

Choose a reason for hiding this comment

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

without the changes from this PR, this assert fails (for example on current master). It would have prevented the regression too.

@filipw filipw merged commit 43f962a into OmniSharp:master Jan 6, 2020
@filipw filipw deleted the bugfix/decode-symbol branch January 6, 2020 09:41
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.

Show types in Intellisense during object initialization
2 participants