Decode responses to the correct type
[lsp-test.git] / src / Language / Haskell / LSP / Test / Files.hs
index 9f78ec1855a4c356da81846a0d2f9184992a293a..48390940a990419aa7024fe0f65f778200b3ba47 100644 (file)
@@ -11,8 +11,6 @@ import           Language.Haskell.LSP.Capture
 import           Language.Haskell.LSP.Types hiding ( error )
 import           Language.Haskell.LSP.Messages
 import           Control.Lens
-import           Data.Aeson
-import qualified Data.ByteString.Lazy.Char8    as B
 import qualified Data.HashMap.Strict           as HM
 import qualified Data.Text                     as T
 import           Data.Maybe
@@ -46,6 +44,7 @@ mapUris f event =
     FromServer t msg -> FromServer t (fromServerMsg msg)
 
   where
+    --TODO: Handle all other URLs that might need swapped
     fromClientMsg (NotDidOpenTextDocument n) = NotDidOpenTextDocument $ swapUri (params . textDocument) n
     fromClientMsg (NotDidChangeTextDocument n) = NotDidChangeTextDocument $ swapUri (params . textDocument) n
     fromClientMsg (NotWillSaveTextDocument n) = NotWillSaveTextDocument $ swapUri (params . textDocument) n