X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=src%2FLanguage%2FHaskell%2FLSP%2FTest%2FFiles.hs;h=48390940a990419aa7024fe0f65f778200b3ba47;hp=9f78ec1855a4c356da81846a0d2f9184992a293a;hb=refs%2Fheads%2FfileSwap;hpb=2560f39d64911bc247fa479868052545dca4f827 diff --git a/src/Language/Haskell/LSP/Test/Files.hs b/src/Language/Haskell/LSP/Test/Files.hs index 9f78ec1..4839094 100644 --- a/src/Language/Haskell/LSP/Test/Files.hs +++ b/src/Language/Haskell/LSP/Test/Files.hs @@ -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