We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34f545d commit 5159679Copy full SHA for 5159679
lsp-types/src/Language/LSP/Types/Registration.hs
@@ -138,7 +138,7 @@ instance ToJSON SomeRegistration where
138
instance FromJSON SomeRegistration where
139
parseJSON = withObject "Registration" $ \o -> do
140
SomeClientMethod m <- o .: "method"
141
- r <- Registration <$> o .: "id" <*> pure m <*> regHelper m (o .: "registerOptions")
+ r <- Registration <$> o .: "id" <*> pure m <*> regHelper m (o .:? "registerOptions")
142
pure (SomeRegistration r)
143
144
instance Eq SomeRegistration where
0 commit comments