Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 6b09cc0

Browse files
authored
Merge pull request #1349 from Avi-D-coder/master
Fix completionItem/resolve sending snippets as plain text
2 parents cea1b9c + 1c1e5f8 commit 6b09cc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Haskell/Ide/Engine/Support/HieExtras.hs

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ resolveCompletion origCompl =
199199
pure (det,Just insertText)
200200
return $ origCompl & J.documentation .~ docs
201201
& J.insertText .~ insert
202+
& J.insertTextFormat ?~ J.Snippet
202203
& J.detail .~ (detail <> origCompl ^. J.detail)
203204
Just (J.Error err) -> do
204205
debugm $ "resolveCompletion: Decoding data failed because of: " ++ err

0 commit comments

Comments
 (0)