Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Code review fixes | Kirill Bulatov | 2021-01-04 | 1 | -3/+18 |
| | |||||
* | Fix type error with .and_then | Nick Spain | 2021-01-02 | 1 | -15/+14 |
| | |||||
* | Handle not finding range in Definition::search_scope | Nick Spain | 2021-01-02 | 1 | -12/+36 |
| | | | | | | The `LifetimeParam` and `Local` variants use `source()` to find their range. Now that `source()` returns an `Option` we need to handle the `None` case. | ||||
* | Mark HasSource::source_old as deprecated but allow at all call sites | Nick Spain | 2021-01-02 | 1 | -0/+2 |
| | |||||
* | HasSource::source -> HasSource::source_old | Nick Spain | 2021-01-02 | 1 | -12/+12 |
| | | | | To start migrating HasSource::source to return an Option. | ||||
* | Merge #7080 | bors[bot] | 2021-01-01 | 1 | -2/+11 |
|\ | | | | | | | | | | | | | | | 7080: Implement ConstParams for HIR r=Veykril a=Veykril r? @flodiebold Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Add ConstParams to the ide layer | Lukas Wirth | 2021-01-01 | 1 | -2/+11 |
| | | |||||
* | | Avoid a couple of allocations | Laurențiu Nicola | 2020-12-29 | 1 | -6/+6 |
| | | |||||
* | | Add docs and optimisations | Kirill Bulatov | 2020-12-28 | 1 | -3/+3 |
| | | |||||
* | | Better query api and fuzzy search | Kirill Bulatov | 2020-12-28 | 1 | -7/+6 |
| | | |||||
* | | Draft the module exclusion in modules | Kirill Bulatov | 2020-12-28 | 1 | -2/+8 |
|/ | |||||
* | Support labels in reference search | Lukas Wirth | 2020-12-24 | 1 | -5/+13 |
| | |||||
* | Add initial_contents field for CreateFile | Daiki Ihara | 2020-12-21 | 1 | -1/+1 |
| | |||||
* | Align code_model name with ungrammar | Aleksey Kladov | 2020-12-20 | 2 | -3/+3 |
| | |||||
* | Don't expose SyntaxKind from IDE API | Aleksey Kladov | 2020-12-18 | 1 | -8/+40 |
| | | | | | | SyntaxKind is somewhat of an internal type, but IDE is using it to basically specify an icon. Let's have a dedicated entity for this instead. | ||||
* | Do not merge imports with different attributes | Jesse Bakker | 2020-12-18 | 2 | -1/+28 |
| | |||||
* | Rename ImplDef -> Impl | Aleksey Kladov | 2020-12-17 | 2 | -3/+3 |
| | | | | | | We used to have `Def` suffix for all symbols, but we moved off from that. `FunctionDef` isn't better than `Function`. Looks like we've forgot to change `Impl` though! | ||||
* | Merge #6907 | bors[bot] | 2020-12-17 | 3 | -18/+107 |
|\ | | | | | | | | | | | | | | | | | | | 6907: Lifetime reference search r=matklad a=Veykril PR #6787 but rewritten to make use of the HIR now. This only applies to Lifetimes, not labels. Also Higher-Ranked Trait Bounds aren't supported yet, but I feel like this PR is big enough as is which is why I left them out after noticing I forgot about them. Supporting renaming required slight changes in the renaming module as lifetime names aren't allowed for anything but lifetimes(and labels) and vice versa for normal names. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Lifetime reference search | Lukas Wirth | 2020-12-16 | 3 | -18/+107 |
| | | |||||
* | | Remove `module_lang_items` | Jonas Schievink | 2020-12-16 | 1 | -1/+0 |
|/ | | | | | It isn't used anywhere except in `crate_lang_items`. Remove it to slightly reduce memory usage and simplify the code. | ||||
* | Move to upstream `macro_rules!` model | Jonas Schievink | 2020-12-15 | 2 | -8/+2 |
| | |||||
* | Add find usages for enum constructors | Daiki Ihara | 2020-12-14 | 1 | -0/+15 |
| | |||||
* | Normalize spelling to American English | Aleksey Kladov | 2020-12-10 | 2 | -18/+18 |
| | |||||
* | Introduce anchored_path | Aleksey Kladov | 2020-12-09 | 2 | -7/+7 |
| | | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way. | ||||
* | Merge #6750 | bors[bot] | 2020-12-08 | 1 | -1/+0 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 6750: Remove documentation query, move doc handling to attributes r=matklad a=Veykril Fixes #3182 Removes the documentation query in favor of `Attrs::docs`. Attrs already handlded doc comments partially but the alloc saving check was wrong so it only worked when other attributes existed as well. Unfortunately the `new` constructor has to do an intermediate allocation now because we need to keep the order of mixed doc attributes and doc comments. I've also partially adjusted the `hover` module to have its tests check the changes, it still has some `HasSource` trait usage due to the `ShortLabel` trait usage, as that is only implemented on the Ast parts and not the Hir, should this ideally be implemented for the Hir types as well?(would be a follow up PR of course) Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Remove documentation query | Lukas Wirth | 2020-12-07 | 1 | -1/+0 |
| | | |||||
* | | Tweak the search query params for better lookup speed | Kirill Bulatov | 2020-12-08 | 1 | -1/+9 |
| | | |||||
* | | Disable the completion for no corresponding client resolve capabilities | Kirill Bulatov | 2020-12-07 | 1 | -12/+2 |
| | | |||||
* | | Remove the state | Kirill Bulatov | 2020-12-07 | 1 | -31/+1 |
| | | |||||
* | | Make completion resolve async | Kirill Bulatov | 2020-12-07 | 1 | -1/+31 |
|/ | |||||
* | Add slightly more profiling details | Jonas Schievink | 2020-12-04 | 1 | -1/+1 |
| | |||||
* | Extract tests module to file in ide_db crate | Daiki Ihara | 2020-12-03 | 8 | -1441/+1419 |
| | |||||
* | Fix use merging not using the first path segment | Lukas Wirth | 2020-11-30 | 1 | -1/+10 |
| | |||||
* | Support self in reference search | Lukas Wirth | 2020-11-29 | 1 | -0/+1 |
| | |||||
* | Move the helpers into ide_db | Kirill Bulatov | 2020-11-28 | 3 | -0/+1408 |
| | |||||
* | Merge #6614 #6632 | bors[bot] | 2020-11-26 | 1 | -1/+8 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6614: Improve autoimports on completion speed r=matklad a=SomeoneToIgnore Presumably closes https://github.com/rust-analyzer/rust-analyzer/issues/6594 May help https://github.com/rust-analyzer/rust-analyzer/issues/6612 * Ignore modules eaferly * Do less completion string rendering 6632: Pin cargo_metadata r=matklad a=kjeremy See: https://github.com/oli-obk/cargo_metadata/pull/142#issuecomment-733653275 Co-authored-by: Kirill Bulatov <[email protected]> Co-authored-by: kjeremy <[email protected]> | ||||
| * | Improve autoimports on completion speed | Kirill Bulatov | 2020-11-24 | 1 | -1/+8 |
| | | | | | | | | | | * Ignore modules eaferly * Do less completion string rendering | ||||
* | | Rename `parse_macro` to `parse_macro_expansion` | Jonas Schievink | 2020-11-24 | 2 | -3/+3 |
|/ | | | | This does not parse macros, it expands a macro and parses the *result* | ||||
* | Remove query aliases | Kirill Bulatov | 2020-11-16 | 1 | -8/+8 |
| | |||||
* | Tweak the search limits a bit | Kirill Bulatov | 2020-11-16 | 1 | -2/+3 |
| | |||||
* | Use imports_locator | Kirill Bulatov | 2020-11-16 | 1 | -18/+47 |
| | |||||
* | Add imports in auto completion | Kirill Bulatov | 2020-11-16 | 1 | -5/+9 |
| | |||||
* | Use shorthand field syntax in destructures | Lukas Wirth | 2020-11-14 | 1 | -10/+22 |
| | |||||
* | Use shorthand record syntax when renaming struct initializer field | Lukas Wirth | 2020-11-14 | 1 | -6/+10 |
| | |||||
* | Re-export base_db from ide_db | Igor Aleksanov | 2020-10-24 | 1 | -0/+3 |
| | |||||
* | Add tests for traits functions in ide_db | Igor Aleksanov | 2020-10-24 | 1 | -0/+149 |
| | |||||
* | Make call_info a part of ide_db | Igor Aleksanov | 2020-10-24 | 2 | -0/+757 |
| | |||||
* | Remove dependency on 'assists' from 'completion' crate | Igor Aleksanov | 2020-10-24 | 3 | -0/+138 |
| | |||||
* | Clarify the names one more time | Aleksey Kladov | 2020-10-15 | 3 | -9/+18 |
| | |||||
* | More idiomatic classification API | Aleksey Kladov | 2020-10-15 | 3 | -174/+174 |
| |