about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2021-02-14 18:23:16 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2021-02-16 19:22:09 +0300
commit3f09e3fba62839f26da2f27ce27a2335b1dca7ef (patch)
treef22768736f47d9c8a7218717a4c7e81055af999e /docs/dev
parent1fcf687657c7029e7e36dc2cc17bdec7a391d63f (diff)
downloadrust-3f09e3fba62839f26da2f27ce27a2335b1dca7ef.tar.gz
rust-3f09e3fba62839f26da2f27ce27a2335b1dca7ef.zip
document offsets
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index a4e1087244f..164c8482e2e 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,5 +1,5 @@
 <!---
-lsp_ext.rs hash: 34aec6bfeaeb97a
+lsp_ext.rs hash: d279d971d4f62cd7
 
 If you need to change the above hash to make the test pass, please check if you
 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
 
 If you want to be notified about the changes to this document, subscribe to [#4604](https://github.com/rust-analyzer/rust-analyzer/issues/4604).
 
+## UTF-8 offsets
+
+rust-analyzer supports clangd's extension for opting into UTF-8 as the coordinate space for offsets (by default, LSP uses UTF-16 offsets).
+
+https://clangd.llvm.org/extensions.html#utf-8-offsets
+
 ## `initializationOptions`
 
 For `initializationOptions`, `rust-analyzer` expects `"rust-analyzer"` section of the configuration.