Switch to upstream positionEncoding

This commit is contained in:
Laurențiu Nicola 2022-10-25 14:43:26 +03:00
parent 53b6d69e93
commit 956b96a19d
16 changed files with 56 additions and 51 deletions

View file

@ -383,7 +383,7 @@ impl GlobalStateSnapshot {
pub(crate) fn file_line_index(&self, file_id: FileId) -> Cancellable<LineIndex> {
let endings = self.vfs.read().1[&file_id];
let index = self.analysis.file_line_index(file_id)?;
let res = LineIndex { index, endings, encoding: self.config.offset_encoding() };
let res = LineIndex { index, endings, encoding: self.config.position_encoding() };
Ok(res)
}