Skip to content

Commit 21c55c9

Browse files
committed
add back some tests and investigate haskell#2375 later
1 parent 4475e77 commit 21c55c9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/hls-pragmas-plugin/src/Ide/Plugin/Pragmas.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ completion _ide _ complParams = do
214214
let (J.TextDocumentIdentifier uri) = complParams ^. J.textDocument
215215
position = complParams ^. J.position
216216
contents <- LSP.getVirtualFile $ toNormalizedUri uri
217-
fmap (Right . J.InL) $ case (undefined, uriToFilePath' undefined) of
217+
fmap (Right . J.InL) $ case (contents, uriToFilePath' uri) of
218218
(Just cnts, Just _path) ->
219219
result <$> VFS.getCompletionPrefix position cnts
220220
where

plugins/hls-pragmas-plugin/test/Main.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ tests :: TestTree
2020
tests =
2121
testGroup "pragmas"
2222
[ codeActionTests
23-
-- , codeActionTests'
24-
-- , completionTests
23+
, codeActionTests'
24+
, completionTests
2525
]
2626

2727
codeActionTests :: TestTree
@@ -125,7 +125,6 @@ completionTest testComment fileName te' label textFormat insertText detail [a, b
125125
item ^. L.insertTextFormat @?= textFormat
126126
item ^. L.insertText @?= insertText
127127
item ^. L.detail @?= detail
128-
completionTest _ _ _ _ _ _ _ _ = undefined
129128

130129
goldenWithPragmas :: TestName -> FilePath -> (TextDocumentIdentifier -> Session ()) -> TestTree
131130
goldenWithPragmas title path = goldenWithHaskellDoc pragmasPlugin title testDataDir path "expected" "hs"

0 commit comments

Comments
 (0)