From 136d1864bcb5046e7f334ac347a8a94946d1ba90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Ochagav=C3=ADa?= Date: Thu, 15 Nov 2018 17:34:05 +0100 Subject: Support UTF-16 chars in LineIndex --- crates/ra_lsp_server/src/conv.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs index e5a2449c2..a102b9105 100644 --- a/crates/ra_lsp_server/src/conv.rs +++ b/crates/ra_lsp_server/src/conv.rs @@ -49,7 +49,6 @@ impl ConvWith for Position { type Output = TextUnit; fn conv_with(self, line_index: &LineIndex) -> TextUnit { - // TODO: UTF-16 let line_col = LineCol { line: self.line as u32, col: (self.character as u32).into(), @@ -64,7 +63,6 @@ impl ConvWith for TextUnit { fn conv_with(self, line_index: &LineIndex) -> Position { let line_col = line_index.line_col(self); - // TODO: UTF-16 Position::new(u64::from(line_col.line), u64::from(u32::from(line_col.col))) } } -- cgit v1.2.3