aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/hover.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Move impls of ToNav that use source() to TryToNavNick Spain2021-01-021-5/+5
|
* source_old -> source for cases that can be handled by simple bubblingNick Spain2021-01-021-3/+3
|
* HasSource::source_old -> HasSource::source for places where proc-macros were ↵Nick Spain2021-01-021-8/+1
| | | | | | | | | | | | special cased In #6901 some special case handling for proc-macros was introduced to prevent panicing as they have no AST. Now the new HasSource::source method is used that returns an option. Generally this was a pretty trivial change, the only thing of much interest is that `hir::MacroDef` now implements `TryToNav` not `ToNav` as this allows us to handle `HasSource::source` now returning an option.
* Mark HasSource::source_old as deprecated but allow at all call sitesNick Spain2021-01-021-0/+4
|
* HasSource::source -> HasSource::source_oldNick Spain2021-01-021-4/+4
| | | | To start migrating HasSource::source to return an Option.
* Show lifetimes and labels on hoverLukas Wirth2021-01-011-7/+43
|
* Add ConstParams to the ide layerLukas Wirth2021-01-011-1/+4
|
* Support labels in reference searchLukas Wirth2020-12-241-1/+1
|
* Align code_model name with ungrammarAleksey Kladov2020-12-201-2/+2
|
* Reduce test verbosityAleksey Kladov2020-12-181-403/+109
|
* NavTarget doesn't assume that it points to a symbolAleksey Kladov2020-12-181-37/+111
|
* Don't expose SyntaxKind from IDE APIAleksey Kladov2020-12-181-37/+37
| | | | | | 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.
* Merge #6901bors[bot]2020-12-181-0/+6
|\ | | | | | | | | | | | | | | | | | | 6901: Temp fixes panic caused by no ast for proc-macro r=maklad a=edwin0cheng There are some panic when hover/goto definition for proc-macro. It is because in current design, we don't have `ast-node` for proc-macro and then it trigger [this](https://github.com/rust-analyzer/rust-analyzer/blob/479d1f7eec22c3564867223e2093f14774092528/crates/hir/src/has_source.rs#L116) line to panic. This PR is a temp fix for all of these similar to https://github.com/rust-analyzer/rust-analyzer/blob/bd4c352831662762ee7a66da77ec9adf623b0a0a/crates/completion/src/render/macro_.rs#L42 Co-authored-by: Edwin Cheng <[email protected]>
| * Temp fixes panic caused by no ast for proc-macroEdwin Cheng2020-12-181-0/+6
| |
* | 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-1/+1
|/
* Don't highlight parent nodes of comments on hoverLukas Wirth2020-12-111-0/+16
|
* Test inner and outer doc comments in hoverLukas Wirth2020-12-091-0/+62
|
* Remove hir_def/docs.rs moduleLukas Wirth2020-12-071-28/+36
|
* Don't insert blank lines between doc attributesLukas Wirth2020-12-071-2/+0
|