Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename ra_syntax -> syntax | Aleksey Kladov | 2020-08-12 | 1 | -1/+1 |
| | |||||
* | Rename ra_text_edit -> text_edit | Aleksey Kladov | 2020-08-12 | 1 | -1/+1 |
| | |||||
* | Cleanup TextEdit API | Aleksey Kladov | 2020-08-12 | 1 | -3/+3 |
| | |||||
* | Rename ra_prof -> profile | Aleksey Kladov | 2020-08-12 | 1 | -2/+1 |
| | |||||
* | Better naming and docs | Kirill Bulatov | 2020-08-11 | 1 | -1/+1 |
| | |||||
* | Simplify fix structure | Kirill Bulatov | 2020-08-11 | 1 | -38/+30 |
| | |||||
* | Improve the ide diagnostics trait API | Kirill Bulatov | 2020-08-11 | 1 | -171/+17 |
| | |||||
* | Move the DiagnosticsWithFix trait on the ide level | Kirill Bulatov | 2020-08-11 | 1 | -7/+21 |
| | |||||
* | Make the fix AST source Optional | Kirill Bulatov | 2020-08-11 | 1 | -37/+50 |
| | |||||
* | Refactor the diagnostics | Kirill Bulatov | 2020-08-11 | 1 | -37/+39 |
| | |||||
* | Better naming | Kirill Bulatov | 2020-08-11 | 1 | -14/+17 |
| | |||||
* | Less stubs | Kirill Bulatov | 2020-08-11 | 1 | -6/+2 |
| | |||||
* | Custom ranges for missing fields | Kirill Bulatov | 2020-08-11 | 1 | -2/+4 |
| | |||||
* | Separate diagnostics and diagnostics fix ranges | Kirill Bulatov | 2020-08-11 | 1 | -43/+55 |
| | |||||
* | align names in make | Aleksey Kladov | 2020-08-05 | 1 | -4/+6 |
| | |||||
* | Rename FieldDef -> Field | Aleksey Kladov | 2020-07-30 | 1 | -8/+8 |
| | |||||
* | Rename RecordLit -> RecordExpr | Aleksey Kladov | 2020-07-30 | 1 | -3/+3 |
| | |||||
* | Only display experimental diagnostics when enabled | Jonas Schievink | 2020-07-24 | 1 | -5/+12 |
| | |||||
* | Add a builder for DiagnosticSink | Jonas Schievink | 2020-07-24 | 1 | -68/+71 |
| | |||||
* | Minor perf tweaks per clippy | Jeremy Kolb | 2020-07-19 | 1 | -1/+1 |
| | |||||
* | Show fewer syntax errors | Aleksey Kladov | 2020-07-15 | 1 | -2/+2 |
| | |||||
* | Correctly generate new struct field in file containing struct def | Timo Freiberg | 2020-07-10 | 1 | -3/+55 |
| | |||||
* | Only take first 500 syntax errors | yihuang | 2020-07-10 | 1 | -1/+2 |
| | | | | Too many syntax errors make some editor/ide slow, fix #3434. | ||||
* | Merge #5270 | bors[bot] | 2020-07-09 | 1 | -8/+0 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5270: Add argument count mismatch diagnostic r=matklad a=jonas-schievink Closes https://github.com/rust-analyzer/rust-analyzer/issues/4025. This currently has one false positive on this line, where `max` is resolved to `Iterator::max` instead of `Ord::max`: https://github.com/rust-analyzer/rust-analyzer/blob/8aa10c00a4c5b957d459fac5a103cd9688e8dcdd/crates/expect/src/lib.rs#L263 (I have no idea why it thinks that `usize` is an `Iterator`) TODO: * [x] Tests * [x] Improve diagnostic text for method calls Co-authored-by: Jonas Schievink <[email protected]> | ||||
| * | Remove unnecessary DiagnosticSink handlers | Jonas Schievink | 2020-07-09 | 1 | -16/+0 |
| | | |||||
| * | Add argument count mismatch diagnostic | Jonas Schievink | 2020-07-09 | 1 | -0/+8 |
| | | |||||
* | | Cleanup diagnostics tests | Aleksey Kladov | 2020-07-09 | 1 | -225/+123 |
| | | |||||
* | | Reduce code duplication | Aleksey Kladov | 2020-07-09 | 1 | -181/+147 |
|/ | |||||
* | Colorize more test fixtures | Laurențiu Nicola | 2020-07-01 | 1 | -20/+22 |
| | |||||
* | Simplify | Aleksey Kladov | 2020-06-24 | 1 | -4/+2 |
| | |||||
* | Use fixtures more | Aleksey Kladov | 2020-06-24 | 1 | -19/+21 |
| | |||||
* | More principled indentation trimming in fixtures | Aleksey Kladov | 2020-06-23 | 1 | -19/+4 |
| | |||||
* | Don't offer to add missing fields of unknown types | Laurențiu Nicola | 2020-06-22 | 1 | -0/+3 |
| | |||||
* | Merge #4851 | bors[bot] | 2020-06-19 | 1 | -2/+96 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 4851: Add quickfix to add a struct field r=TimoFreiberg a=TimoFreiberg Related to #4563 I created a quickfix for record literals first because the NoSuchField diagnostic was already there. To offer that quickfix for FieldExprs with unknown fields I'd need to add a new diagnostic (or create a `NoSuchField` diagnostic for those cases) I think it'd make sense to make this a snippet completion (to select the generated type), but this would require changing the `Analysis` API and I'd like some feedback before I touch that. Co-authored-by: Timo Freiberg <[email protected]> | ||||
| * | Add quickfix to add a struct field | Timo Freiberg | 2020-06-12 | 1 | -2/+96 |
| | | |||||
* | | Anchor file-system operations to the file, and not to the source root. | Aleksey Kladov | 2020-06-16 | 1 | -12/+8 |
|/ | | | | | | | | | | | | | | | | Anchoring to the SourceRoot wont' work if the path is absolute: #[path = "/tmp/foo.rs"] mod foo; Anchoring to a file will. However, we *should* anchor, instead of just producing an abs path. I can imagine a situation where, for example, rust-analyzer processes crates from different machines (or, for example, from in-memory git branch), where the same absolute path in different crates might refer to different files in the end! | ||||
* | simplify determining whether the field is a tuple field | OptimalStrategy | 2020-06-12 | 1 | -5/+1 |
| | |||||
* | Fix invalid shorthand initialization diagnostic for tuple structs | OptimalStrategy | 2020-06-12 | 1 | -1/+18 |
| | |||||
* | Update wrap return tests | Jonas Schievink | 2020-06-11 | 1 | -29/+17 |
| | | | | Update "no diagnostic" tests, use `()` instead of `String` | ||||
* | Make known paths use `core` instead of `std` | Jonas Schievink | 2020-06-11 | 1 | -9/+9 |
| | |||||
* | Simplify | Aleksey Kladov | 2020-06-08 | 1 | -2/+2 |
| | |||||
* | Fixed missing newline on each field on "Missing structure fields". | Cadu | 2020-05-27 | 1 | -1/+1 |
| | |||||
* | KISS SourceChange | Aleksey Kladov | 2020-05-22 | 1 | -49/+52 |
| | | | | | | The idea behind requiring the label is a noble one, but we are not really using it consistently anyway, and it should be easy to retrofit later, should we need it. | ||||
* | Remove dead code for handling cursor positions | Aleksey Kladov | 2020-05-21 | 1 | -2/+0 |
| | |||||
* | Add AssistConfig | Aleksey Kladov | 2020-05-19 | 1 | -0/+2 |
| | |||||
* | Fixup tests | Aleksey Kladov | 2020-05-05 | 1 | -6/+18 |
| | |||||
* | Normalize naming of diagnostics | Aleksey Kladov | 2020-05-05 | 1 | -6/+6 |
| | |||||
* | Convert tests to text-size | Aleksey Kladov | 2020-04-25 | 1 | -4/+4 |
| | |||||
* | Convert code to text-size | Aleksey Kladov | 2020-04-25 | 1 | -1/+1 |
| | |||||
* | Correctly highlight ranges of diagnostics from macros | Aleksey Kladov | 2020-04-17 | 1 | -6/+66 |
| | | | | closes #2799 |