aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src/search.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge #8021 #8022bors[bot]2021-03-151-1/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8021: Enable searching for builtin types r=matklad a=Veykril Not too sure how useful this is for reference search overall, but for completeness sake it should be there ![image](https://user-images.githubusercontent.com/3757771/111132711-f69db600-8579-11eb-8c90-22fd6862d11f.png) Also enables document highlighting for them. 8022: some clippy::performance fixes r=matklad a=matthiaskrgr use vec![] instead of Vec::new() + push() avoid redundant clones use chars instead of &str for single char patterns in ends_with() and starts_with() allocate some Vecs with capacity to avoid unnecessary resizing Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Matthias Krüger <[email protected]>
| * Enable searching for builtin typesLukas Wirth2021-03-151-1/+15
| |
* | Apply review suggestionsvsrs2021-03-111-2/+2
| |
* | Add runnables::related_testsvsrs2021-02-271-0/+4
|/
* Pickup ConstReference patterns in FindUsagesLukas Wirth2021-02-231-4/+11
|
* Implement ast::AstNode for NameLike and move it to node_extLukas Wirth2021-02-161-42/+24
|
* Fix a few clippy::perf warningskjeremy2021-02-161-1/+1
|
* Use NameLike in FileReference directly as its not exported from ide anymoreLukas Wirth2021-02-121-43/+20
|
* Refactor reference searching to work with the astLukas Wirth2021-02-121-80/+60
|
* Treat BlockExpr as a potential module originJonas Schievink2021-01-201-0/+10
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-151-1/+1
|
* Rename FileReferences -> UsageSearchResultLukas Wirth2021-01-121-6/+5
|
* Ensure uniqueness of file ids in reference search via hashmapLukas Wirth2021-01-121-19/+29
|
* Group references by FileIdLukas Wirth2021-01-121-37/+64
|
* Use hir::GenericParam in ide_db::Definition instead of relisting all 3Lukas Wirth2021-01-101-1/+1
|
* Remove some stale deprecationsAleksey Kladov2021-01-071-1/+0
|
* Fix type error with .and_thenNick Spain2021-01-021-15/+14
|
* Handle not finding range in Definition::search_scopeNick Spain2021-01-021-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 sitesNick Spain2021-01-021-0/+2
|
* HasSource::source -> HasSource::source_oldNick Spain2021-01-021-12/+12
| | | | To start migrating HasSource::source to return an Option.
* Align code_model name with ungrammarAleksey Kladov2020-12-201-1/+1
|
* Rename ImplDef -> ImplAleksey Kladov2020-12-171-1/+1
| | | | | | 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!
* Lifetime reference searchLukas Wirth2020-12-161-13/+50
|
* Add find usages for enum constructorsDaiki Ihara2020-12-141-0/+15
|
* Support self in reference searchLukas Wirth2020-11-291-0/+1
|
* Use shorthand field syntax in destructuresLukas Wirth2020-11-141-10/+22
|
* Use shorthand record syntax when renaming struct initializer fieldLukas Wirth2020-11-141-6/+10
|
* Clarify the names one more timeAleksey Kladov2020-10-151-1/+1
|
* More idiomatic classification APIAleksey Kladov2020-10-151-3/+3
|
* More clarificationsAleksey Kladov2020-10-151-2/+2
|
* Unconfuse expression and pattern field init shorthandsAleksey Kladov2020-10-151-1/+1
|
* Treat `ast::Name` in field patterns as useJonas Schievink2020-10-091-43/+73
|
* Optimize reference searchAleksey Kladov2020-08-191-25/+38
|
* **Remove Unused Parameter** refactoringAleksey Kladov2020-08-191-1/+1
|
* Future proof find-usages APIAleksey Kladov2020-08-191-13/+35
| | | | | | We might want to provide more efficient impls for check if usages exist, limiting the search, filtering and cancellation, so let's violate YAGNI a bit here.
* Rename ra_ide_db -> ide_dbAleksey Kladov2020-08-131-0/+322