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

Don't throw null-ref when Roslyn CompletionService doesn't return anything #674

Merged

Conversation

DustinCampbell
Copy link
Contributor

@DustinCampbell DustinCampbell commented Nov 22, 2016

@DustinCampbell DustinCampbell changed the title Don't throw null-ref when Roslyn CompletionService doesn't return any… Don't throw null-ref when Roslyn CompletionService doesn't return anything Nov 22, 2016
Copy link
Member

@david-driscoll david-driscoll left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -44,24 +44,27 @@ public IntellisenseService(OmnisharpWorkspace workspace, FormattingOptions forma
// Add keywords from the completion list. We'll use the recommender service to get symbols
// to create snippets from.

foreach (var item in completionList.Items)
if (completionList != null)
Copy link
Member

Choose a reason for hiding this comment

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

Usually git diff is much better than this! lol

Copy link
Contributor Author

Choose a reason for hiding this comment

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

totally

@DustinCampbell DustinCampbell merged commit 58767a2 into OmniSharp:dev Nov 22, 2016
@DustinCampbell DustinCampbell deleted the fix-autocomplete-exception branch January 19, 2017 14:10
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.

2 participants