-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Got this error when requesting document formatting with no insertFinalNewline set in FormattingOptions:
Internal Error - System.Collections.Generic.KeyNotFoundException: The given key 'insertFinalNewline' was not present in the dictionary.
According to the LSP docs trimTrailingWhitespace, insertFinalNewline and trimFinalNewlines are optional, however it seems the OmniSharp implementation just assumes they are always in the dictionary? Should we check their existence before accessing the keys?
| get => this["trimTrailingWhitespace"].IsBool ? this["trimTrailingWhitespace"].Bool : false; |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working