File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -937,9 +937,9 @@ getHover doc pos =
937
937
in nullToMaybe . getResponseResult <$> request SMethod_TextDocumentHover params
938
938
939
939
-- | Returns the signature help at the specified position.
940
- getSignatureHelp :: TextDocumentIdentifier -> Position -> Session (Maybe SignatureHelp )
941
- getSignatureHelp doc pos =
942
- let params = SignatureHelpParams doc pos Nothing Nothing
940
+ getSignatureHelp :: TextDocumentIdentifier -> Position -> Maybe SignatureHelpContext -> Session (Maybe SignatureHelp )
941
+ getSignatureHelp doc pos mCtx =
942
+ let params = SignatureHelpParams doc pos Nothing mCtx
943
943
in nullToMaybe . getResponseResult <$> request SMethod_TextDocumentSignatureHelp params
944
944
945
945
-- | Returns the highlighted occurrences of the term at the specified position
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ main = hspec $ around withDummyServer $ do
310
310
describe " getSignatureHelp" $
311
311
it " works" $ \ (hin, hout) -> runSessionWithHandles hin hout def fullLatestClientCaps " ." $ do
312
312
doc <- openDoc " test/data/renamePass/Desktop/simple.hs" " haskell"
313
- signatureHelp <- getSignatureHelp doc (Position 22 32 )
313
+ signatureHelp <- getSignatureHelp doc (Position 22 32 ) Nothing
314
314
liftIO $ signatureHelp `shouldSatisfy` isJust
315
315
316
316
-- describe "getHighlights" $
You can’t perform that action at this time.
0 commit comments