From 3db64a400c78bbd2708e67ddc07df1001fff3f29 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 17 Feb 2021 17:53:31 +0300 Subject: rename completion -> ide_completion We don't have completion-related PRs in flight, so lets do it --- crates/ide/Cargo.toml | 2 +- crates/ide/src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ide') diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index bb28cca4d..3cbe3a397 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml @@ -29,7 +29,7 @@ profile = { path = "../profile", version = "0.0.0" } test_utils = { path = "../test_utils", version = "0.0.0" } assists = { path = "../assists", version = "0.0.0" } ssr = { path = "../ssr", version = "0.0.0" } -completion = { path = "../completion", version = "0.0.0" } +ide_completion = { path = "../ide_completion", version = "0.0.0" } # ide should depend only on the top-level `hir` package. if you need # something from some `hir_xxx` subpackage, reexport the API via `hir`. diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index a2c8db505..f47ec61fe 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs @@ -83,11 +83,11 @@ pub use crate::{ }, }; pub use assists::{Assist, AssistConfig, AssistId, AssistKind}; -pub use completion::{ +pub use hir::{Documentation, Semantics}; +pub use ide_completion::{ CompletionConfig, CompletionItem, CompletionItemKind, CompletionScore, ImportEdit, InsertTextFormat, }; -pub use hir::{Documentation, Semantics}; pub use ide_db::{ base_db::{ Canceled, Change, CrateGraph, CrateId, Edition, FileId, FilePosition, FileRange, @@ -468,7 +468,7 @@ impl Analysis { config: &CompletionConfig, position: FilePosition, ) -> Cancelable>> { - self.with_db(|db| completion::completions(db, config, position).map(Into::into)) + self.with_db(|db| ide_completion::completions(db, config, position).map(Into::into)) } /// Resolves additional completion data at the position given. @@ -482,7 +482,7 @@ impl Analysis { ) -> Cancelable> { Ok(self .with_db(|db| { - completion::resolve_completion_edits( + ide_completion::resolve_completion_edits( db, config, position, -- cgit v1.2.3