Skip to content

Commit 3f09e3f

Browse files
committed
document offsets
1 parent 1fcf687 commit 3f09e3f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/dev/lsp-extensions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
lsp_ext.rs hash: 34aec6bfeaeb97a
2+
lsp_ext.rs hash: d279d971d4f62cd7
33
44
If you need to change the above hash to make the test pass, please check if you
55
need to adjust this doc as well and ping this issue:
@@ -19,6 +19,12 @@ Requests, which are likely to always remain specific to `rust-analyzer` are unde
1919

2020
If you want to be notified about the changes to this document, subscribe to [#4604](https://github.com/rust-analyzer/rust-analyzer/issues/4604).
2121

22+
## UTF-8 offsets
23+
24+
rust-analyzer supports clangd's extension for opting into UTF-8 as the coordinate space for offsets (by default, LSP uses UTF-16 offsets).
25+
26+
https://clangd.llvm.org/extensions.html#utf-8-offsets
27+
2228
## `initializationOptions`
2329

2430
For `initializationOptions`, `rust-analyzer` expects `"rust-analyzer"` section of the configuration.

0 commit comments

Comments
 (0)