Skip to content

Commit 907d4c3

Browse files
Merge #9236
9236: Fix some typos in flyimport docs r=SomeoneToIgnore a=SomeoneToIgnore bors r+ Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2 parents 85d2cd3 + 9c0b141 commit 907d4c3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/ide_completion/src/completions/flyimport.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Feature: completion with imports-on-the-fly
22
//!
33
//! When completing names in the current scope, proposes additional imports from other modules or crates,
4-
//! if they can be qualified in the scope and their name contains all symbols from the completion input.
4+
//! if they can be qualified in the scope, and their name contains all symbols from the completion input.
55
//!
66
//! To be considered applicable, the name must contain all input symbols in the given order, not necessarily adjacent.
7-
//! If any input symbol is not lowercased, the name must contain all symbols in exact case; otherwise the contaning is checked case-insensitively.
7+
//! If any input symbol is not lowercased, the name must contain all symbols in exact case; otherwise the containing is checked case-insensitively.
88
//!
99
//! ```
1010
//! fn main() {
@@ -23,8 +23,8 @@
2323
//! ```
2424
//!
2525
//! Also completes associated items, that require trait imports.
26-
//! If any unresolved and/or partially-qualified path predeces the input, it will be taken into account.
27-
//! Currently, only the imports with their import path ending with the whole qialifier will be proposed
26+
//! If any unresolved and/or partially-qualified path precedes the input, it will be taken into account.
27+
//! Currently, only the imports with their import path ending with the whole qualifier will be proposed
2828
//! (no fuzzy matching for qualifier).
2929
//!
3030
//! ```
@@ -61,14 +61,14 @@
6161
//! }
6262
//! ```
6363
//!
64-
//! NOTE: currently, if an assoc item comes from a trait that's not currently imported and it also has an unresolved and/or partially-qualified path,
64+
//! NOTE: currently, if an assoc item comes from a trait that's not currently imported, and it also has an unresolved and/or partially-qualified path,
6565
//! no imports will be proposed.
6666
//!
6767
//! .Fuzzy search details
6868
//!
6969
//! To avoid an excessive amount of the results returned, completion input is checked for inclusion in the names only
7070
//! (i.e. in `HashMap` in the `std::collections::HashMap` path).
71-
//! For the same reasons, avoids searching for any path imports for inputs with their length less that 2 symbols
71+
//! For the same reasons, avoids searching for any path imports for inputs with their length less than 2 symbols
7272
//! (but shows all associated items for any input length).
7373
//!
7474
//! .Import configuration
@@ -79,15 +79,15 @@
7979
//! .LSP and performance implications
8080
//!
8181
//! The feature is enabled only if the LSP client supports LSP protocol version 3.16+ and reports the `additionalTextEdits`
82-
//! (case sensitive) resolve client capability in its client capabilities.
82+
//! (case-sensitive) resolve client capability in its client capabilities.
8383
//! This way the server is able to defer the costly computations, doing them for a selected completion item only.
8484
//! For clients with no such support, all edits have to be calculated on the completion request, including the fuzzy search completion ones,
8585
//! which might be slow ergo the feature is automatically disabled.
8686
//!
8787
//! .Feature toggle
8888
//!
89-
//! The feature can be forcefully turned off in the settings with the `rust-analyzer.completion.enableAutoimportCompletions` flag.
90-
//! Note that having this flag set to `true` does not guarantee that the feature is enabled: your client needs to have the corredponding
89+
//! The feature can be forcefully turned off in the settings with the `rust-analyzer.completion.autoimport.enable` flag.
90+
//! Note that having this flag set to `true` does not guarantee that the feature is enabled: your client needs to have the corresponding
9191
//! capability enabled.
9292
9393
use ide_db::helpers::{

0 commit comments

Comments
 (0)