Skip to content

Commit

Permalink
add back note
Browse files Browse the repository at this point in the history
  • Loading branch information
soulomoon committed Jan 1, 2024
1 parent 9b12397 commit 40fe213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lsp/src/Language/LSP/VFS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ codePointRangeToRange vFile (CodePointRange b e) =
-}
positionToCodePointPosition :: VirtualFile -> J.Position -> Maybe CodePointPosition
positionToCodePointPosition vFile (J.Position l c) = do
-- See Note [Converting between code points and code units]
let text = _file_text vFile
lineRope <- extractLine text $ fromIntegral l
kLine <- case compare c (fromIntegral $ Rope.utf16Length lineRope) of
Expand Down

0 comments on commit 40fe213

Please sign in to comment.