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

Changes for #162 correct how text document sync settings are configured #163

Merged
merged 6 commits into from
Oct 12, 2019

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

.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