aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/hover.rs
Commit message (Collapse)AuthorAgeFilesLines
* Only populate prelude for crate-level DefMapsJonas Schievink2021-04-021-0/+42
|
* Resolve associated types with type anchorsLukas Wirth2021-04-011-1/+22
|
* Resolve associated typesLukas Wirth2021-04-011-0/+42
|
* Merge #8267bors[bot]2021-03-311-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8267: Adding gifs and screenshots for features in manual r=matklad a=MozarellaMan For #6539 This includes most of gif or screenshot examples of most items in the "Features" header. With the exceptions of: - **On Typing Assists** - couldn't get it to work for a demo, I'm probably missing something? - **Structural search and replace** - looked to be already a visual example of the feature - **Workspace symbol** - wasn't sure how best to show this, all of the examples maybe? Also wasn't sure of the best code example to show it off - **Semantic Syntax Highlighting** - seemed obvious enough to not need a screenshot, but I could easily add this All the gifs/pngs are hosted in this [comment](https://github.com/rust-analyzer/rust-analyzer/issues/6539#issuecomment-809574840). Please let me know if any of them aren't suitable (and why) and I'll improve it! Or if you don't like the theme/font Co-authored-by: Ayomide Bamidele <[email protected]>
| * Gifs and screenshots for features in manualAyomide Bamidele2021-03-311-0/+2
| |
* | Merge #8186bors[bot]2021-03-301-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | 8186: Lower traits to `TraitRef` instead of `TypeRef` r=matklad a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
| * | Rename target_ty to self_tyLukas Wirth2021-03-291-3/+3
| |/
* / Fix code styleivan7702021-03-301-0/+1
|/
* Add support for doc on hover for macro 2.0Edwin Cheng2021-03-271-0/+31
|
* Show item info when hovering intra doc linksLukas Wirth2021-03-231-9/+54
|
* Store an `AstId` for procedural macrosJonas Schievink2021-03-181-4/+10
|
* Fix incorrect newline emission in Attrs::docsLukas Wirth2021-03-171-4/+22
|
* Better handling of block doc commentsLukas Wirth2021-03-171-0/+34
|
* Implement HirDisplay for some more typesLukas Wirth2021-03-161-14/+4
|
* Merge #7498bors[bot]2021-03-161-2/+2
|\ | | | | | | | | | | | | | | | | | | 7498: Clone for update r=matklad a=matklad rowan counterpart https://github.com/rust-analyzer/rowan/pull/93 #6857 Co-authored-by: Aleksey Kladov <[email protected]>
| * Upgrade rowanAleksey Kladov2021-03-161-2/+2
| | | | | | | | Notably, new rowan comes with support for mutable syntax trees.
* | Update testsoxalica2021-03-151-28/+57
| |
* | Use hir formatter moreoxalica2021-03-151-42/+17
| |
* | Impl HirDisplay for function hover messageoxalica2021-03-151-1/+9
| |
* | Add test for hover of macro expanded functionoxalica2021-03-151-0/+38
|/
* Show whether a binding is mutable or not on hoverLukas Wirth2021-03-091-19/+43
|
* Use upstream cov-markLaurențiu Nicola2021-03-081-5/+4
|
* Show docs on hover for keywords and primitivesLukas Wirth2021-03-021-13/+122
|
* Fix lowering trailing self paths in UseTreesLukas Wirth2021-02-281-0/+29
|
* Don't lower TypeBound::Lifetime as GenericPredicate::ErrorLukas Wirth2021-02-201-2/+2
|
* Show hover info of the definition of ConstReference patterns instead of its typeLukas Wirth2021-02-171-2/+38
|
* Wrap `BuiltinType` in code modelJonas Schievink2021-02-111-1/+1
|
* Return inner attributes of outline mod declarations in `attrs_query`Lukas Wirth2021-01-311-0/+16
|
* Fix broken link in intra-docDaiki Ihara2021-01-221-0/+29
|
* Treat BlockExpr as a potential module originJonas Schievink2021-01-201-0/+1
|
* Merge #7321bors[bot]2021-01-191-6/+1
|\ | | | | | | | | | | | | | | 7321: Support runnables in macros r=matklad a=edwin0cheng fixes #4771 Co-authored-by: Edwin Cheng <[email protected]>
| * Support runnables in macrosEdwin Cheng2021-01-191-6/+1
| |
* | Wrap remaining self/super/crate in Name{Ref}Lukas Wirth2021-01-151-3/+2
|/
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-151-7/+40
|
*-. Merge #7051 #7219 #7245 #7246bors[bot]2021-01-111-6/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7051: Check dbg! macro in tidy_test r=matklad a=edwin0cheng Same as `check_todo` but for dbg! macro r? @matklad 7219: Refactor rename name checking r=matklad a=Veykril Improves the user facing error messages a bit and prevents renaming to `_` when the name is referenced as this would change source to not compile anymore since `_` is only a pattern, not a proper identifier. 7245: Encourage gifs r=matklad a=matklad bors r+ 🤖 7246: Unfreeze cargo_metadata r=matklad a=kjeremy It now pulls in a newer version of semver-parser. This does add a dependency on `cargo-platform` in the interest of correctness. Co-authored-by: Edwin Cheng <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> Co-authored-by: kjeremy <[email protected]>
| | * Refactor rename name checkingLukas Wirth2021-01-091-6/+1
| |/
* | Merge #7218bors[bot]2021-01-101-10/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | 7218: Fix typos r=Veykril a=regexident Apart from the very last commit on this PR (which fixes a public type's name) all changes are non-breaking. Co-authored-by: Vincent Esche <[email protected]>
| * | Fixed typos in code commentsVincent Esche2021-01-091-10/+10
| |/
* | Merge #7206 #7231bors[bot]2021-01-101-7/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7206: Use hir::GenericParam in ide_db::Definition instead of relisting all 3 r=Veykril a=Veykril Basically just this: ```diff pub enum Definition { Macro(MacroDef), Field(Field), ModuleDef(ModuleDef), SelfType(Impl), Local(Local), - TypeParam(TypeParam), - LifetimeParam(LifetimeParam), - ConstParam(ConstParam), + GenericParam(GenericParam), Label(Label), } ``` 7231: Cleaner API r=matklad a=matklad bors r+ 🤖 Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| * | Use hir::GenericParam in ide_db::Definition instead of relisting all 3Lukas Wirth2021-01-101-7/+9
| |/
* / CleanupAleksey Kladov2021-01-101-2/+2
|/
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-071-108/+108
|
* Remove some stale deprecationsAleksey Kladov2021-01-071-2/+0
|
* More maintainable configAleksey Kladov2021-01-061-22/+7
| | | | | | | Rather than eagerly converting JSON, we losslessly keep it as is, and change the shape of user-submitted data at the last moment. This also allows us to remove a bunch of wrong Defaults
* Show GotoTypeAction for TypeParamLukas Wirth2021-01-041-17/+54
|
* Show GotoTypeAction for ConstParamLukas Wirth2021-01-041-37/+66
|
* Show implementations when hovering over SelfTypeLukas Wirth2021-01-041-8/+29
|
* Fix HoverAction::Implementation typoLukas Wirth2021-01-041-10/+11
|
* Implement hover for ConstParamLukas Wirth2021-01-041-4/+18
|
* Impl hovering for TypeParamsLukas Wirth2021-01-041-2/+50
|