Skip to content

Commit 1f37f66

Browse files
committed
Development.IDE.LSP.HoverDefinition: align
If these function are plased such - they need to be aligned.
1 parent 64ab8e2 commit 1f37f66

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ghcide/src/Development/IDE/LSP/HoverDefinition.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ import Language.LSP.Types
2424

2525
import qualified Data.Text as T
2626

27-
gotoDefinition :: IdeState -> TextDocumentPositionParams -> LSP.LspM c (Either ResponseError (ResponseResult TextDocumentDefinition))
28-
hover :: IdeState -> TextDocumentPositionParams -> LSP.LspM c (Either ResponseError (Maybe Hover))
27+
gotoDefinition :: IdeState -> TextDocumentPositionParams -> LSP.LspM c (Either ResponseError (ResponseResult TextDocumentDefinition))
28+
hover :: IdeState -> TextDocumentPositionParams -> LSP.LspM c (Either ResponseError (Maybe Hover))
2929
gotoTypeDefinition :: IdeState -> TextDocumentPositionParams -> LSP.LspM c (Either ResponseError (ResponseResult TextDocumentTypeDefinition))
30-
documentHighlight :: IdeState -> TextDocumentPositionParams -> LSP.LspM c (Either ResponseError (List DocumentHighlight))
31-
gotoDefinition = request "Definition" getDefinition (InR $ InL $ List []) (InR . InL . List)
32-
gotoTypeDefinition = request "TypeDefinition" getTypeDefinition (InR $ InL $ List []) (InR . InL . List)
33-
hover = request "Hover" getAtPoint Nothing foundHover
34-
documentHighlight = request "DocumentHighlight" highlightAtPoint (List []) List
30+
documentHighlight :: IdeState -> TextDocumentPositionParams -> LSP.LspM c (Either ResponseError (List DocumentHighlight))
31+
gotoDefinition = request "Definition" getDefinition (InR $ InL $ List []) (InR . InL . List)
32+
gotoTypeDefinition = request "TypeDefinition" getTypeDefinition (InR $ InL $ List []) (InR . InL . List)
33+
hover = request "Hover" getAtPoint Nothing foundHover
34+
documentHighlight = request "DocumentHighlight" highlightAtPoint (List []) List
3535

3636
references :: IdeState -> ReferenceParams -> LSP.LspM c (Either ResponseError (List Location))
3737
references ide (ReferenceParams (TextDocumentIdentifier uri) pos _ _ _) = liftIO $

0 commit comments

Comments
 (0)