diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-22 23:39:56 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-22 23:39:56 +0300 |
| commit | d7c52fc31e233e97d80a5340cf2a1c451ae465af (patch) | |
| tree | 47a16613b5a088103ecd299bdee6a0912ba95919 /internal/lsp/document.go | |
| parent | c97687cb8a2f7ab578291e707bf6c920c346a8cb (diff) | |
remove busy check
Diffstat (limited to 'internal/lsp/document.go')
| -rw-r--r-- | internal/lsp/document.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/lsp/document.go b/internal/lsp/document.go index 17d2fb9..a5ece7e 100644 --- a/internal/lsp/document.go +++ b/internal/lsp/document.go @@ -6,8 +6,6 @@ import ( "time" ) -// --- Document store and helpers --- - type document struct { uri string text string @@ -38,6 +36,7 @@ func (s *Server) getDocument(uri string) *document { return s.docs[uri] } +// splitLines splits the input string into lines, normalizing line endings to '\n'. func splitLines(sx string) []string { sx = strings.ReplaceAll(sx, "\r\n", "\n") return strings.Split(sx, "\n") |
