aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src
Commit message (Collapse)AuthorAgeFilesLines
* move Semantics::visit_file_defs to ide_db::helpersLukas Wirth2021-03-151-0/+28
|
*-. Merge #8021 #8022bors[bot]2021-03-152-2/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-152-2/+16
| | |
* | | Move code to the appropriate layerAleksey Kladov2021-03-151-6/+0
| | | | | | | | | | | | | | | | | | StructureNodeKind is a type which is specific to a particular feature, file_structure. It shouldn't be in the "code shared by all ide features" part.
* | | Introduce StructureNodeKindivan7702021-03-141-1/+6
| | |
* | | Provide regions in file structureivan7702021-03-141-0/+1
| |/ |/|
* | Merge #7799bors[bot]2021-03-131-0/+4
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | 7799: Related tests r=matklad a=vsrs ![tests](https://user-images.githubusercontent.com/62505555/109397453-a9013680-7947-11eb-8b11-ac03079f7645.gif) This adds an ability to look for tests for the item under the cursor: function, constant, data type, etc The LSP part is bound to change. But the feature itself already works and I'm looking for a feedback :) Co-authored-by: vsrs <[email protected]>
| * Apply review suggestionsvsrs2021-03-111-2/+2
| |
| * Add runnables::related_testsvsrs2021-02-271-0/+4
| |
* | Better strip turbofishesKirill Bulatov2021-03-081-4/+4
| |
* | Add rustdocs and use better namesKirill Bulatov2021-03-081-30/+52
| |
* | Less lifetines: derive SemanticsScope in placeKirill Bulatov2021-03-082-25/+24
| |
* | Restrict fuzzy qualifiers for nowKirill Bulatov2021-03-081-20/+23
| |
* | Enforce the located imports' orderKirill Bulatov2021-03-081-6/+5
| |
* | Fix the completion labels and testsKirill Bulatov2021-03-081-31/+68
| |
* | Work towards better import labelsKirill Bulatov2021-03-083-131/+101
| |
* | Profile import_assets betterKirill Bulatov2021-03-081-0/+5
| |
* | SimplifyKirill Bulatov2021-03-081-13/+5
| |
* | Refactor the import locationKirill Bulatov2021-03-081-102/+110
| |
* | Do not propose already imported importsKirill Bulatov2021-03-081-9/+34
| |
* | Properly handle turbofishes in qualifiersKirill Bulatov2021-03-081-5/+7
| |
* | Fix some testsKirill Bulatov2021-03-082-42/+78
| |
* | Return more data about located importsKirill Bulatov2021-03-082-76/+114
| |
* | Draft the qualifier import resolutionKirill Bulatov2021-03-082-37/+137
| |
* | Filter out path items by the qualifierKirill Bulatov2021-03-081-24/+15
| |
* | SimplifyKirill Bulatov2021-03-081-64/+37
| |
* | Find the code to changeKirill Bulatov2021-03-081-55/+130
| |
* | Test and initial refactoringKirill Bulatov2021-03-081-85/+65
| |
* | Use upstream cov-markLaurențiu Nicola2021-03-084-12/+10
| |
* | Make group imports configurableasv2021-03-072-7/+48
| |
* | Show docs on hover for keywords and primitivesLukas Wirth2021-03-022-0/+12
| |
* | Fixed remaining references to `AnalysisChange` (now: `Change`)Vincent Esche2021-02-282-2/+2
|/ | | | (The type was renamed/moved in 8716c4cec3a05ba891b20b5f28df69d925b913ad)
* De Morgan's Law assist now correctly inverts <, <=, >, >=.lbrande2021-02-242-0/+15
|
* 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
|
* Use `cfg(target_arch)` instead of a Cargo featureJonas Schievink2021-02-161-1/+1
| | | | Not that WASM works right now anyways...
* Merge #7657bors[bot]2021-02-162-21/+41
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 7657: utf8 r=matklad a=matklad - Prepare for utf-8 offsets - reduce code duplication in tests - Make utf8 default, implement utf16 in terms of it - Make it easy to add additional context for offset conversion - Implement utf8 offsets closes #7453 Co-authored-by: Aleksey Kladov <[email protected]>
| * Make utf8 default, implement utf16 in terms of itAleksey Kladov2021-02-162-7/+22
| |
| * reduce code duplication in testsAleksey Kladov2021-02-161-14/+19
| |
| * Prepare for utf-8 offsetsAleksey Kladov2021-02-162-20/+20
| |
* | Fix a few clippy::perf warningskjeremy2021-02-161-1/+1
|/
* Don't classify attribute macros as their path unless it's a function with ↵Lukas Wirth2021-02-131-3/+11
| | | | the proc_macro_attribute attribute
* 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
|
* Make `ModPath`'s representation privateJonas Schievink2021-02-041-1/+1
|
* Make always-assert crate reusableAleksey Kladov2021-01-261-5/+2
|
* Merge #7406bors[bot]2021-01-261-0/+15
|\ | | | | | | | | | | | | | | 7406: if_let_match: don't assume happy path r=matklad a=bugadani Closes #7392 Co-authored-by: Dániel Buga <[email protected]>
| * replace_if_let_with_match: don't assume sad patternDániel Buga2021-01-221-0/+15
| |
* | Support unions in symbol searchLukas Wirth2021-01-241-5/+9
|/
* Merge #7353bors[bot]2021-01-221-0/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7353: Add LifetimeParam and ConstParam to CompletionItemKind r=matklad a=Veykril Adds `LifetimeParam` and `ConstParam` to `CompletionItemKind` and maps them both to `TypeParam` in the protocol conversion as there are no equivalents, so nothing really changes there. `ConstParam` could be mapped to `Const` I guess but I'm split on whether that would be better? Additions were solely inspired by (the single) test output for const params. Also sorts the variants of `CompletionItemKind` and its to_proto match. Co-authored-by: Lukas Wirth <[email protected]>