aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/display/navigation_target.rs
Commit message (Collapse)AuthorAgeFilesLines
* HasSource::source_old -> HasSource::source for places where proc-macros were ↵Nick Spain2021-01-021-14/+5
| | | | | | | | | | | | 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/+6
|
* HasSource::source -> HasSource::source_oldNick Spain2021-01-021-6/+6
| | | | To start migrating HasSource::source to return an Option.
* Add ConstParams to the ide layerLukas Wirth2021-01-011-0/+19
|
* Support labels in reference searchLukas Wirth2020-12-241-1/+24
|
* Align code_model name with ungrammarAleksey Kladov2020-12-201-2/+2
|
* Deduplicate highlight tags and symbol kindsAleksey Kladov2020-12-181-2/+4
| | | | | | | Curiously, LSP uses different enums for those, and unsurprising and annoyingly, there are things which exist in one but not in the other. Let's not repeat the mistake and unify the two things
* Reduce test verbosityAleksey Kladov2020-12-181-25/+28
|
* NavTarget doesn't assume that it points to a symbolAleksey Kladov2020-12-181-13/+20
|
* Don't expose SyntaxKind from IDE APIAleksey Kladov2020-12-181-38/+94
| | | | | | 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-1/+9
|\ | | | | | | | | | | | | | | | | | | 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-1/+9
| |
* | Rewrite doctest runnablesAleksey Kladov2020-12-171-19/+0
| | | | | | | | Handle more cases in a generic way without copy-pasting code.
* | Make `Attrs::from_attrs_owner` privateJonas Schievink2020-12-171-28/+2
| |
* | 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/+19
|/
* Use Attrs::docs in NavigationTarget instead of DocCommentsOwnerLukas Wirth2020-12-111-24/+28
|
* Make `original_range` a method on `InFile<&SyntaxNode>`Jonas Schievink2020-12-081-11/+12
|
* Re-export base_db from ide_dbIgor Aleksanov2020-10-241-1/+1
|
* rename mock_analysis -> fixtureAleksey Kladov2020-10-021-3/+3
|
* Get rid of MockAnalysisAleksey Kladov2020-10-021-2/+2
|
* Switch to expect_test from crates.ioAleksey Kladov2020-08-211-1/+1
|
* Rename ra_ide -> ideAleksey Kladov2020-08-131-0/+491