Fix bitrotted module name

This commit is contained in:
Aleksey Kladov 2021-02-13 01:28:48 +03:00
parent f3d56b89c5
commit 1fcf687657
8 changed files with 10 additions and 8 deletions

View File

@ -25,7 +25,7 @@ use vfs::AbsPathBuf;
use crate::{
caps::completion_item_edit_resolve, diagnostics::DiagnosticsMapConfig,
line_endings::OffsetEncoding, lsp_ext::supports_utf8,
line_index::OffsetEncoding, lsp_ext::supports_utf8,
};
config_data! {

View File

@ -9,7 +9,7 @@ use vfs::AbsPathBuf;
use crate::{
from_json,
global_state::GlobalStateSnapshot,
line_endings::{LineIndex, OffsetEncoding},
line_index::{LineIndex, OffsetEncoding},
lsp_ext, Result,
};

View File

@ -22,7 +22,7 @@ use crate::{
diagnostics::{CheckFixes, DiagnosticCollection},
document::DocumentData,
from_proto,
line_endings::{LineEndings, LineIndex},
line_index::{LineEndings, LineIndex},
main_loop::Task,
op_queue::OpQueue,
reload::SourceRootConfig,

View File

@ -36,8 +36,7 @@ use crate::{
diff::diff,
from_proto,
global_state::{GlobalState, GlobalStateSnapshot},
line_endings::LineEndings,
line_endings::LineIndex,
line_index::{LineEndings, LineIndex},
lsp_ext::{self, InlayHint, InlayHintsParams},
lsp_utils::all_edits_are_disjoint,
to_proto, LspError, Result,

View File

@ -29,7 +29,7 @@ mod from_proto;
mod semantic_tokens;
mod markdown;
mod diagnostics;
mod line_endings;
mod line_index;
mod request_metrics;
mod lsp_utils;
mod thread_pool;

View File

@ -1,3 +1,6 @@
//! Enhances `ide::LineIndex` with additional info required to convert offsets
//! into lsp positions.
//!
//! We maintain invariant that all internal strings use `\n` as line separator.
//! This module does line ending conversion and detection (so that we can
//! convert back to `\r\n` on the way out).

View File

@ -7,7 +7,7 @@ use lsp_server::Notification;
use crate::{
from_proto,
global_state::GlobalState,
line_endings::{LineEndings, LineIndex, OffsetEncoding},
line_index::{LineEndings, LineIndex, OffsetEncoding},
};
pub(crate) fn is_canceled(e: &(dyn Error + 'static)) -> bool {

View File

@ -17,7 +17,7 @@ use serde_json::to_value;
use crate::{
cargo_target_spec::CargoTargetSpec,
global_state::GlobalStateSnapshot,
line_endings::{LineEndings, LineIndex, OffsetEncoding},
line_index::{LineEndings, LineIndex, OffsetEncoding},
lsp_ext, semantic_tokens, Result,
};