Communicate with language servers in terms of UTF-16 coordinates

This required indexing UTF-16 positions in `Rope`. We tried opting
into the UTF-8 experimental support but it didn't seem to work
correctly and the standard is UTF-16 anyway.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-10-29 18:31:21 +02:00
parent 9c1b01521a
commit 6212ebad9b
11 changed files with 564 additions and 221 deletions

View file

@ -226,7 +226,6 @@ impl LanguageServer {
experimental: Some(json!({
"serverStatusNotification": true,
})),
offset_encoding: Some(vec!["utf-8".to_string()]),
..Default::default()
},
trace: Default::default(),