X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=src%2FLanguage%2FLSP%2FTest%2FSession.hs;fp=src%2FLanguage%2FLSP%2FTest%2FSession.hs;h=ac668e6fab51dc0254edcc4252779e51c573e802;hp=36007391c35965676be1a5f87a337e33947a3afb;hb=8eb081b3dd74d549c2ebda3e630d0abfdfb71658;hpb=fb6a9f6f2b3d9393f5b356416d46cc92b098839f diff --git a/src/Language/LSP/Test/Session.hs b/src/Language/LSP/Test/Session.hs index 3600739..ac668e6 100644 --- a/src/Language/LSP/Test/Session.hs +++ b/src/Language/LSP/Test/Session.hs @@ -29,6 +29,7 @@ module Language.LSP.Test.Session , bumpTimeoutId , logMsg , LogMsgType(..) + , documentChangeUri ) where @@ -296,8 +297,8 @@ updateStateC = awaitForever $ \msg -> do updateState msg yield msg - -- extract Uri out from DocumentChange +-- didn't put this in `lsp-types` because TH was getting in the way documentChangeUri :: DocumentChange -> Uri documentChangeUri (InL x) = x ^. textDocument . uri documentChangeUri (InR (InL x)) = x ^. uri