aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/diagnostics
Commit message (Collapse)AuthorAgeFilesLines
* minor: simplifyAleksey Kladov2021-06-135-17/+15
|
* internal: check diagnostics in all files and not just the first oneAleksey Kladov2021-06-132-9/+23
|
* internal: remove def-level diagnostics testsAleksey Kladov2021-06-131-0/+12
|
* internal: refactor macro errorAleksey Kladov2021-06-131-0/+163
|
* internal: refactor unresolved proc macro diagnosticAleksey Kladov2021-06-132-1/+35
|
* internal: refactor inactive code diagnosticsAleksey Kladov2021-06-131-0/+113
|
* internal: refactor unresolved macro call diagnosticAleksey Kladov2021-06-131-0/+72
|
* internal: refactor unresolved import diagnosticAleksey Kladov2021-06-132-0/+91
|
* internal: refactor unresolved extern crate diagnosticAleksey Kladov2021-06-131-0/+49
|
* internal: unified missing fields diagnosticAleksey Kladov2021-06-131-10/+25
|
* internal: move missing_fields diagnosticsAleksey Kladov2021-06-133-49/+75
|
* internal: start new diagnostics APIAleksey Kladov2021-06-132-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_borrowMaan20032021-06-132-3/+3
|
* Add pub mod option for UnlinkedFilerainy-me2021-05-1810-99/+115
|
* fix: don't add extra whitespace around fieldsAleksey Kladov2021-05-171-0/+25
| | | | closes #8785
* minor: add missing testsAleksey Kladov2021-05-172-0/+52
|
* internal: scalable module structure for fixitsAleksey Kladov2021-05-177-236/+692
|
* minor: extract fix to fileAleksey Kladov2021-05-172-44/+196
|
* internal: use mutable syntax trees when filling fieldsAleksey Kladov2021-05-161-3/+4
|
* Resolve single assist onlyKirill Bulatov2021-05-032-9/+9
|
* Add a way to resolve certain assistsKirill Bulatov2021-05-032-10/+48
|
* feat: improve performance by delaying computation of fixes for diagnosticsAleksey Kladov2021-04-132-14/+26
|
* internal: prepare for lazy diagnosticsAleksey Kladov2021-04-123-26/+38
|
* Prefer add `mod` declaration to lib.rs over file.rs in UnlinkedFile fixLukas Wirth2021-03-271-1/+1
|
* syntax: return owned string instead of leaking stringcynecx2021-03-261-1/+1
|
* Document unlinked-file diagnosticJonas Schievink2021-03-241-0/+4
|
* avoid converting types into themselves via .into() (clippy::useless-conversion)Matthias Krüger2021-03-171-1/+1
| | | | example: let x: String = String::from("hello world").into();
* Add module commentJonas Schievink2021-03-151-0/+2
|
* Use pub(crate)Jonas Schievink2021-03-151-3/+3
|
* Redo it properly and add a quickfixJonas Schievink2021-03-151-0/+154
|
* Remove use of SourceFileEditPhil Ellison2021-01-231-2/+1
|
* cargo fmtPhil Ellison2021-01-231-1/+5
|
* Address review commentsPhil Ellison2021-01-231-9/+4
|
* cargo fmtPhil Ellison2021-01-231-2/+7
|
* Implement fix, add testsPhil Ellison2021-01-231-18/+11
|
* Add diagnostic for filter_map followed by nextPhil Ellison2021-01-231-1/+32
|
* Remove obsolete RangeInfo usage in renameLukas Wirth2021-01-181-1/+1
|
* Make rename reference search use ide_db::search directlyLukas Wirth2021-01-181-1/+1
|
* Phase out SourceFileEdits in favour of a plain HashMapLukas Wirth2021-01-142-15/+9
|
* Group file source edits by FileIdLukas Wirth2021-01-142-13/+12
|
* cargo fmtPhil Ellison2021-01-071-1/+2
|
* Add fix to wrap return expression in SomePhil Ellison2021-01-071-6/+7
|
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-071-4/+4
|
* Remove some stale deprecationsAleksey Kladov2021-01-071-3/+0
|
* source_old -> source for cases that can be handled by simple bubblingNick Spain2021-01-021-3/+3
|
* Mark HasSource::source_old as deprecated but allow at all call sitesNick Spain2021-01-021-0/+3
|
* HasSource::source -> HasSource::source_oldNick Spain2021-01-021-3/+3
| | | | To start migrating HasSource::source to return an Option.
* Add initial_contents field for CreateFileDaiki Ihara2020-12-211-0/+1
|
* Align code_model name with ungrammarAleksey Kladov2020-12-201-1/+1
|
* Merge #6769bors[bot]2020-12-101-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]>