Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
soulomoon committed Jan 2, 2024
1 parent f7a6314 commit 374041f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lsp/src/Language/LSP/VFS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,12 @@ linear time in the length of the (single) line.
So the overall process is logarithmic in the number of lines, and linear in the length of the specific
line. Which is okay-ish, so long as we don't have very long lines.
We are not able to use the `Rope.splitAtPosition`
Because the when column index out of range or when the column indexing at the newline char.
The prefix result would wrap over the line and having the same result (nextLineNum, 0).
We would not be able to distinguish them. When the first case should return `Nothing`,
other should return a `Just (CurrentLineNum, columnNumberConverted)`.
-}

{- | Extracts a specific line from a 'Rope.Rope'.
Expand Down

0 comments on commit 374041f

Please sign in to comment.