mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
rename completion -> ide_completion
We don't have completion-related PRs in flight, so lets do it
This commit is contained in:
parent
6334ce866a
commit
3db64a400c
37 changed files with 33 additions and 32 deletions
|
@ -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`.
|
||||
|
|
|
@ -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<Option<Vec<CompletionItem>>> {
|
||||
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<Vec<TextEdit>> {
|
||||
Ok(self
|
||||
.with_db(|db| {
|
||||
completion::resolve_completion_edits(
|
||||
ide_completion::resolve_completion_edits(
|
||||
db,
|
||||
config,
|
||||
position,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "completion"
|
||||
name = "ide_completion"
|
||||
version = "0.0.0"
|
||||
description = "TBD"
|
||||
license = "MIT OR Apache-2.0"
|
Loading…
Add table
Add a link
Reference in a new issue