Skip to content

Commit 1733ed6

Browse files
someoneinjdkadircet
andcommitted
Mark UTF-8 offsets extension as deprecated
Co-authored-by: kadir çetinkaya <[email protected]>
1 parent 8eaec15 commit 1733ed6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ index). This was added to support integration with indexes outside clangd.
134134
## UTF-8 offsets
135135
{:.v9}
136136

137+
> **WARNING**
138+
> This extension has been deprecated with `clangd-21` in favor of the `positionEncoding` introduced in LSP 3.17. It'll go away with `clangd-23`.
139+
> See [the official LSP specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocuments)
140+
137141
LSP specifies that offsets within lines are in UTF-16 code units (for `Position`s and also delta-encoded document updates).
138142
This choice of encoding is a legacy of VSCode's JavaScript implementation.
139143

0 commit comments

Comments
 (0)