Skip to content

Commit 8afa962

Browse files
committed
Fixed Server.hs log messages
1 parent 23921b6 commit 8afa962

File tree

1 file changed

+4
-3
lines changed
  • src-extra/language-server/JbeamEdit/LSP

1 file changed

+4
-3
lines changed

src-extra/language-server/JbeamEdit/LSP/Server.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import Language.LSP.Protocol.Types qualified as J (
2323
TextDocumentItem (..),
2424
TextDocumentSyncKind (..),
2525
TextDocumentSyncOptions (..),
26+
Uri (..),
2627
VersionedTextDocumentIdentifier (..),
2728
type (|?) (..),
2829
)
@@ -96,7 +97,7 @@ handleDidOpen
9697
let J.TextDocumentItem {J._uri = uri, J._text = txt} = textDoc
9798
in liftIO $ do
9899
Docs.open uri txt
99-
logInfo logAction ("Document opened: " <> show uri)
100+
logInfo logAction ("Document opened: " <> J.getUri uri)
100101

101102
-- | didChange: update document in DocumentStore
102103
handleDidChange
@@ -123,7 +124,7 @@ handleDidChange
123124
J.InR (J.TextDocumentContentChangeWholeDocument txt) ->
124125
Docs.update uri txt
125126

126-
logInfo logAction ("Document changed: " <> show uri)
127+
logInfo logAction ("Document changed: " <> J.getUri uri)
127128
_ -> pure ()
128129

129130
handleDidClose
@@ -143,4 +144,4 @@ handleDidClose
143144
let J.TextDocumentIdentifier {_uri = uri} = docId
144145
in liftIO $ do
145146
Docs.delete uri
146-
logInfo logAction ("Document closed: " <> show uri)
147+
logInfo logAction ("Document closed: " <> J.getUri uri)

0 commit comments

Comments
 (0)