@@ -85,7 +85,7 @@ experiments =
85
85
forM_ docs $ \ DocumentPositions {.. } ->
86
86
changeDoc doc [charEdit stringLiteralP]
87
87
flip allWithIdentifierPos docs $ \ DocumentPositions {.. } ->
88
- not . null <$> getDefinitions doc (fromJust identifierP),
88
+ either ( not . null ) ( not . null ) . toEither <$> getDefinitions doc (fromJust identifierP),
89
89
---------------------------------------------------------------------------------------
90
90
bench " documentSymbols" $ allM $ \ DocumentPositions {.. } -> do
91
91
fmap (either (not . null ) (not . null )) . getDocumentSymbols $ doc,
@@ -359,7 +359,7 @@ waitForProgressDone :: Session ()
359
359
waitForProgressDone = loop
360
360
where
361
361
loop = do
362
- void $ skipManyTill anyMessage $ satisfyMaybe $ \ case
362
+ ~ () <- skipManyTill anyMessage $ satisfyMaybe $ \ case
363
363
FromServerMess SProgress (NotificationMessage _ _ (ProgressParams _ (End _))) -> Just ()
364
364
_ -> Nothing
365
365
done <- null <$> getIncompleteProgressSessions
@@ -563,7 +563,7 @@ searchSymbol doc@TextDocumentIdentifier{_uri} fileContents pos = do
563
563
checkDefinitions pos = do
564
564
defs <- getDefinitions doc pos
565
565
case defs of
566
- [Location uri _] -> return $ uri /= _uri
566
+ ( InL [Location uri _]) -> return $ uri /= _uri
567
567
_ -> return False
568
568
checkCompletions pos =
569
569
not . null <$> getCompletions doc pos
0 commit comments