Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | internal: start new diagnostics API | Aleksey Kladov | 2021-06-13 | 2 | -28/+47 |
| | | | | | | | | | | | | | | | | | | At the moment, this moves only a single diagnostic, but the idea is reafactor the rest to use the same pattern. We are going to have a single file per diagnostic. This file will define diagnostics code, rendering range and fixes, if any. It'll also have all of the tests. This is similar to how we deal with assists. After we refactor all diagnostics to follow this pattern, we'll probably move them to a new `ide_diagnostics` crate. Not that we intentionally want to test all diagnostics on this layer, despite the fact that they are generally emitted in the guts on the compiler. Diagnostics care to much about the end presentation details/fixes to be worth-while "unit" testing. So, we'll unit-test only the primary output of compilation process (types and name res tables), and will use integrated UI tests for diagnostics. | ||||
* | clippy::redudant_borrow | Maan2003 | 2021-06-13 | 2 | -3/+3 |
| | |||||
* | Add pub mod option for UnlinkedFile | rainy-me | 2021-05-18 | 10 | -99/+115 |
| | |||||
* | fix: don't add extra whitespace around fields | Aleksey Kladov | 2021-05-17 | 1 | -0/+25 |
| | | | | closes #8785 | ||||
* | minor: add missing tests | Aleksey Kladov | 2021-05-17 | 2 | -0/+52 |
| | |||||
* | internal: scalable module structure for fixits | Aleksey Kladov | 2021-05-17 | 7 | -236/+692 |
| | |||||
* | minor: extract fix to file | Aleksey Kladov | 2021-05-17 | 2 | -44/+196 |
| | |||||
* | internal: use mutable syntax trees when filling fields | Aleksey Kladov | 2021-05-16 | 1 | -3/+4 |
| | |||||
* | Resolve single assist only | Kirill Bulatov | 2021-05-03 | 2 | -9/+9 |
| | |||||
* | Add a way to resolve certain assists | Kirill Bulatov | 2021-05-03 | 2 | -10/+48 |
| | |||||
* | feat: improve performance by delaying computation of fixes for diagnostics | Aleksey Kladov | 2021-04-13 | 2 | -14/+26 |
| | |||||
* | internal: prepare for lazy diagnostics | Aleksey Kladov | 2021-04-12 | 3 | -26/+38 |
| | |||||
* | Prefer add `mod` declaration to lib.rs over file.rs in UnlinkedFile fix | Lukas Wirth | 2021-03-27 | 1 | -1/+1 |
| | |||||
* | syntax: return owned string instead of leaking string | cynecx | 2021-03-26 | 1 | -1/+1 |
| | |||||
* | Document unlinked-file diagnostic | Jonas Schievink | 2021-03-24 | 1 | -0/+4 |
| | |||||
* | avoid converting types into themselves via .into() (clippy::useless-conversion) | Matthias Krüger | 2021-03-17 | 1 | -1/+1 |
| | | | | example: let x: String = String::from("hello world").into(); | ||||
* | Add module comment | Jonas Schievink | 2021-03-15 | 1 | -0/+2 |
| | |||||
* | Use pub(crate) | Jonas Schievink | 2021-03-15 | 1 | -3/+3 |
| | |||||
* | Redo it properly and add a quickfix | Jonas Schievink | 2021-03-15 | 1 | -0/+154 |
| | |||||
* | Remove use of SourceFileEdit | Phil Ellison | 2021-01-23 | 1 | -2/+1 |
| | |||||
* | cargo fmt | Phil Ellison | 2021-01-23 | 1 | -1/+5 |
| | |||||
* | Address review comments | Phil Ellison | 2021-01-23 | 1 | -9/+4 |
| | |||||
* | cargo fmt | Phil Ellison | 2021-01-23 | 1 | -2/+7 |
| | |||||
* | Implement fix, add tests | Phil Ellison | 2021-01-23 | 1 | -18/+11 |
| | |||||
* | Add diagnostic for filter_map followed by next | Phil Ellison | 2021-01-23 | 1 | -1/+32 |
| | |||||
* | Remove obsolete RangeInfo usage in rename | Lukas Wirth | 2021-01-18 | 1 | -1/+1 |
| | |||||
* | Make rename reference search use ide_db::search directly | Lukas Wirth | 2021-01-18 | 1 | -1/+1 |
| | |||||
* | Phase out SourceFileEdits in favour of a plain HashMap | Lukas Wirth | 2021-01-14 | 2 | -15/+9 |
| | |||||
* | Group file source edits by FileId | Lukas Wirth | 2021-01-14 | 2 | -13/+12 |
| | |||||
* | cargo fmt | Phil Ellison | 2021-01-07 | 1 | -1/+2 |
| | |||||
* | Add fix to wrap return expression in Some | Phil Ellison | 2021-01-07 | 1 | -6/+7 |
| | |||||
* | Change <|> to $0 - Rebase | Kevaundray Wedderburn | 2021-01-07 | 1 | -4/+4 |
| | |||||
* | Remove some stale deprecations | Aleksey Kladov | 2021-01-07 | 1 | -3/+0 |
| | |||||
* | source_old -> source for cases that can be handled by simple bubbling | Nick Spain | 2021-01-02 | 1 | -3/+3 |
| | |||||
* | Mark HasSource::source_old as deprecated but allow at all call sites | Nick Spain | 2021-01-02 | 1 | -0/+3 |
| | |||||
* | HasSource::source -> HasSource::source_old | Nick Spain | 2021-01-02 | 1 | -3/+3 |
| | | | | To start migrating HasSource::source to return an Option. | ||||
* | Add initial_contents field for CreateFile | Daiki Ihara | 2020-12-21 | 1 | -0/+1 |
| | |||||
* | Align code_model name with ungrammar | Aleksey Kladov | 2020-12-20 | 1 | -1/+1 |
| | |||||
* | Merge #6769 | bors[bot] | 2020-12-10 | 1 | -1/+22 |
|\ | | | | | | | | | | | | | | | | | | | 6769: Add native "remove this semicolon" diagnostics r=matklad a=ivan770 Closes #6739 ![demo2](https://user-images.githubusercontent.com/14003886/101530533-b76c3180-399a-11eb-9d18-5c8457721655.gif) Co-authored-by: ivan770 <[email protected]> | ||||
| * | Cast to ExprStmt, style fixes | ivan770 | 2020-12-10 | 1 | -4/+4 |
| | | |||||
| * | Format code | ivan770 | 2020-12-08 | 1 | -3/+10 |
| | | |||||
| * | Remove unused use | ivan770 | 2020-12-08 | 1 | -1/+1 |
| | | |||||
| * | Remove this semicolon | ivan770 | 2020-12-08 | 1 | -6/+20 |
| | | |||||
* | | Fix FileId computation in IncorrectCase fix | Jonas Schievink | 2020-12-10 | 1 | -4/+4 |
| | | |||||
* | | Introduce anchored_path | Aleksey Kladov | 2020-12-09 | 1 | -3/+5 |
| | | | | | | | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way. | ||||
* | | Fix MissingFields DiagnosticFix trigger range | Lukas Wirth | 2020-12-09 | 1 | -2/+3 |
|/ | |||||
* | Support struct variants in extract_struct_from_enum_variant | Lukas Wirth | 2020-11-03 | 1 | -1/+2 |
| | |||||
* | Remove more unreachable pubs | Aleksey Kladov | 2020-11-02 | 1 | -1/+1 |
| | |||||
* | Re-export base_db from ide_db | Igor Aleksanov | 2020-10-24 | 2 | -2/+2 |
| | |||||
* | Simplify diagnostic construction, add unused field | Jonas Schievink | 2020-10-20 | 1 | -19/+13 |
| |