mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
document offsets
This commit is contained in:
parent
1fcf687657
commit
3f09e3fba6
1 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue