Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix ConstParam HasSource impl and implement TryToNav not Nav | Nick Spain | 2021-01-02 | 1 | -6/+6 |
| | |||||
* | Move impls of ToNav that use source() to TryToNav | Nick Spain | 2021-01-02 | 1 | -55/+50 |
| | |||||
* | HasSource::source_old -> HasSource::source for places where proc-macros were ↵ | Nick Spain | 2021-01-02 | 1 | -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 sites | Nick Spain | 2021-01-02 | 1 | -0/+6 |
| | |||||
* | HasSource::source -> HasSource::source_old | Nick Spain | 2021-01-02 | 1 | -6/+6 |
| | | | | To start migrating HasSource::source to return an Option. | ||||
* | Add ConstParams to the ide layer | Lukas Wirth | 2021-01-01 | 1 | -0/+19 |
| | |||||
* | Support labels in reference search | Lukas Wirth | 2020-12-24 | 1 | -1/+24 |
| | |||||
* | Align code_model name with ungrammar | Aleksey Kladov | 2020-12-20 | 1 | -2/+2 |
| | |||||
* | Deduplicate highlight tags and symbol kinds | Aleksey Kladov | 2020-12-18 | 1 | -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 verbosity | Aleksey Kladov | 2020-12-18 | 1 | -25/+28 |
| | |||||
* | NavTarget doesn't assume that it points to a symbol | Aleksey Kladov | 2020-12-18 | 1 | -13/+20 |
| | |||||
* | Don't expose SyntaxKind from IDE API | Aleksey Kladov | 2020-12-18 | 1 | -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 #6901 | bors[bot] | 2020-12-18 | 1 | -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-macro | Edwin Cheng | 2020-12-18 | 1 | -1/+9 |
| | | |||||
* | | Rewrite doctest runnables | Aleksey Kladov | 2020-12-17 | 1 | -19/+0 |
| | | | | | | | | Handle more cases in a generic way without copy-pasting code. | ||||
* | | Make `Attrs::from_attrs_owner` private | Jonas Schievink | 2020-12-17 | 1 | -28/+2 |
| | | |||||
* | | Rename ImplDef -> Impl | Aleksey Kladov | 2020-12-17 | 1 | -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 search | Lukas Wirth | 2020-12-16 | 1 | -1/+19 |
|/ | |||||
* | Use Attrs::docs in NavigationTarget instead of DocCommentsOwner | Lukas Wirth | 2020-12-11 | 1 | -24/+28 |
| | |||||
* | Make `original_range` a method on `InFile<&SyntaxNode>` | Jonas Schievink | 2020-12-08 | 1 | -11/+12 |
| | |||||
* | Re-export base_db from ide_db | Igor Aleksanov | 2020-10-24 | 1 | -1/+1 |
| | |||||
* | rename mock_analysis -> fixture | Aleksey Kladov | 2020-10-02 | 1 | -3/+3 |
| | |||||
* | Get rid of MockAnalysis | Aleksey Kladov | 2020-10-02 | 1 | -2/+2 |
| | |||||
* | Switch to expect_test from crates.io | Aleksey Kladov | 2020-08-21 | 1 | -1/+1 |
| | |||||
* | Rename ra_ide -> ide | Aleksey Kladov | 2020-08-13 | 1 | -0/+491 |