Skip to content

Conversation

david-driscoll
Copy link
Member

No description provided.

@david-driscoll
Copy link
Member Author

This should hopefully fix some of the issues seen in #162

change = options
.Where(x => x.Change != TextDocumentSyncKind.None)
.Min(z => z.Change),
.Min(z => z.Change);
Copy link
Member

Choose a reason for hiding this comment

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

As per comment in #162 (comment) this seems to throw because sequence doesn't contain any elements. Maybe add the same predicate x => x.Change != TextDocumentSyncKind.None also to the if (options.Any()) check above?

Copy link
Member Author

Choose a reason for hiding this comment

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

sounds like a good change...

@david-driscoll
Copy link
Member Author

@mholo65 updated 🙃

@bjorkstromm bjorkstromm merged commit 3dd94c7 into master Oct 12, 2019
@david-driscoll david-driscoll deleted the fix/text-options-defaults branch June 2, 2020 04:47
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