-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Shorter dependency chain #6342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shorter dependency chain #6342
Conversation
| AssistContext, AssistId, AssistKind, Assists, | ||
| }; | ||
| use crate::{utils::unwrap_trivial_block, AssistContext, AssistId, AssistKind, Assists}; | ||
| use ide_db::ty_filter::TryEnum; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor and is not required to be fixed, but we put crate:: and other_crate:: deps in different groups: https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md#order-of-imports
matklad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
bors d+
(in case this conflicts with another .lock changing PR in queue)
| expect![[r#""#]], | ||
| ); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| use crate::{line_index::LineIndex, symbol_index::SymbolsDatabase}; | ||
|
|
||
| /// `base_db` is normally also needed in places where `ide_db` is used, so this re-export is for convenience. | ||
| pub use base_db; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
✌️ popzxc can now approve this pull request. To approve and merge a pull request, simply reply with |
Continuing implementing suggestions from the
Completion refactoringzulip thread.This PR does the following:
completionsonassistsby moving required functionality intoide_db.call_infocrate intoide_dbas it looks like it fits perfect there.base_dbto theide_dband removes direct dependency onbase_dbfrom other crates.The last point is controversial, I guess, but I noticed that in places where
ide_dbis used,base_dbis also always used. Thus I think the dependency on thebase_dbis implied by the fact ofide_dbinterfaces, and thus it makes sense to just providebase_dbout of the box.