diff --git a/crates/mun_hir/src/line_index.rs b/crates/mun_hir/src/line_index.rs index 4c47f9e3d..09d210e4a 100644 --- a/crates/mun_hir/src/line_index.rs +++ b/crates/mun_hir/src/line_index.rs @@ -163,7 +163,7 @@ impl LineIndex { col.into() } - /// Given a line and column number for utf8 text convert it to the offset in utf16 text. + /// Given a line and column number for utf8 text, convert it to the offset in utf16 text. fn utf8_to_utf16_col(&self, line: u32, col: TextSize) -> usize { let mut res: usize = col.into(); if let Some(utf16_chars) = self.utf16_lines.get(&line) { diff --git a/crates/mun_language_server/src/completion/context.rs b/crates/mun_language_server/src/completion/context.rs deleted file mode 100644 index 59a293141..000000000 --- a/crates/mun_language_server/src/completion/context.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub(super) struct CompletionContext { - -} diff --git a/crates/mun_language_server/src/from_lsp.rs b/crates/mun_language_server/src/from_lsp.rs index 9c8694b9a..27b1cf6bc 100644 --- a/crates/mun_language_server/src/from_lsp.rs +++ b/crates/mun_language_server/src/from_lsp.rs @@ -17,7 +17,7 @@ pub(crate) fn abs_path(uri: &Url) -> anyhow::Result { .ok_or_else(|| anyhow::anyhow!("invalid uri: {}", uri)) } -/// Returns the `hir::FileId` associated with the given `Url` +/// Returns the `hir::FileId` associated with the given `Url`. pub(crate) fn file_id( snapshot: &LanguageServerSnapshot, url: &lsp_types::Url, @@ -32,7 +32,7 @@ pub(crate) fn file_id( }) } -/// Converts the specified `offset` to our own `TextSize` structure +/// Converts the specified offset to our own `TextSize` structure pub(crate) fn offset(line_index: &LineIndex, position: lsp_types::Position) -> TextSize { let line_col = hir::line_index::LineCol { line: position.line as u32,