aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/diagnostics.rs
Commit message (Collapse)AuthorAgeFilesLines
* Stop expanding UseTrees during ItemTree loweringJonas Schievink2021-05-261-0/+2
|
* internal: move diagnostics to hirAleksey Kladov2021-05-251-20/+45
| | | | | | | | | | | | | | | | | | | | | | | The idea here is to eventually get rid of `dyn Diagnostic` and `DiagnosticSink` infrastructure altogether, and just have a `enum hir::Diagnostic` instead. The problem with `dyn Diagnostic` is that it is defined in the lowest level of the stack (hir_expand), but is used by the highest level (ide). As a first step, we free hir_expand and hir_def from `dyn Diagnostic` and kick the can up to `hir_ty`, as an intermediate state. The plan is then to move DiagnosticSink similarly to the hir crate, and, as final third step, remove its usage from the ide. One currently unsolved problem is testing. You can notice that the test which checks precise diagnostic ranges, unresolved_import_in_use_tree, was moved to the ide layer. Logically, only IDE should have the infra to render a specific range. At the same time, the range is determined with the data produced in hir_def and hir crates, so this layering is rather unfortunate. Working on hir_def shouldn't require compiling `ide` for testing.
* Add pub mod option for UnlinkedFilerainy-me2021-05-181-21/+42
|
* internal: scalable module structure for fixitsAleksey Kladov2021-05-171-530/+1
|
* internal: use mutable syntax trees when filling fieldsAleksey Kladov2021-05-161-3/+3
|
* fix: use raw idents in `make::name{_ref}` with keywordsJonas Schievink2021-05-071-0/+20
|
* Resolve single assist onlyKirill Bulatov2021-05-031-3/+3
|
* Add a way to resolve certain assistsKirill Bulatov2021-05-031-12/+31
|
* Include path in `unresolved-macro-call` diagnosticJonas Schievink2021-04-161-1/+1
|
* feat: improve performance by delaying computation of fixes for diagnosticsAleksey Kladov2021-04-131-21/+39
|
* internal: prepare for lazy diagnosticsAleksey Kladov2021-04-121-39/+44
|
* Shrink `unlinked-file` diagnostic to 3 charactersJonas Schievink2021-04-091-7/+9
|
* Don't mark unlinked file diagnostic as unusedJonas Schievink2021-03-281-1/+0
|
* Redo it properly and add a quickfixJonas Schievink2021-03-151-7/+154
|
* Diagnose files that aren't in the module treeJonas Schievink2021-03-101-3/+13
|
* For unresolved macros, hightlight only the last segmentAleksey Kladov2021-02-281-11/+56
|
* Add diagnostic for filter_map followed by nextPhil Ellison2021-01-231-0/+3
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-151-2/+2
|
* Phase out SourceFileEdits in favour of a plain HashMapLukas Wirth2021-01-141-7/+5
|
* Group file source edits by FileIdLukas Wirth2021-01-141-10/+9
|
* Switch test markerPhil Ellison2021-01-071-1/+1
|
* Add fix to wrap return expression in SomePhil Ellison2021-01-071-2/+51
|
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-071-22/+22
|
* test for new behaviorAdnoC2020-12-301-0/+16
|
* Smarter bracketed use diagnosticAdnoC2020-12-301-0/+6
|
* Simplify moreAleksey Kladov2020-12-241-43/+22
|
* SimplifyAleksey Kladov2020-12-241-35/+7
|
* Prevent multiple incorrect case diagnostics in functionsunexge2020-12-231-0/+13
|
* Update test diagnostics in ideDaiki Ihara2020-12-211-0/+1
|
* Merge #6769bors[bot]2020-12-101-0/+3
|\ | | | | | | | | | | | | | | | | | | 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]>
| * Remove this semicolonivan7702020-12-081-0/+3
| |
* | Introduce anchored_pathAleksey Kladov2020-12-091-4/+6
|/ | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way.
* Don't diagnose `#[cfg]` in macrosJonas Schievink2020-12-031-0/+5
|
* More accurately place proc-macro diagnosticJonas Schievink2020-11-271-4/+6
|
* Publish diagnostics for macro expansion errorsJonas Schievink2020-11-271-0/+7
|
* Fill the diagnostic code field in publish_diagnosticsLukas Wirth2020-11-171-8/+32
|
* Do insertion lookahead in algo::diffLukas Wirth2020-10-261-1/+1
|
* Re-export base_db from ide_dbIgor Aleksanov2020-10-241-1/+1
|
* Rewrite algo::diff to support insertion and deletionLukas Wirth2020-10-221-1/+1
|
* Fixup botched renameJonas Schievink2020-10-201-1/+1
|
* Add a (hint) diagnostic for unconfigured itemsJonas Schievink2020-10-201-1/+15
|
* Simplify diagnostic construction, add unused fieldJonas Schievink2020-10-201-38/+35
|
* Move field_shorthand to a separate moduleAleksey Kladov2020-10-151-196/+5
|
* Diagnose shorthand in patterns as wellAleksey Kladov2020-10-151-5/+94
|
* flattenAleksey Kladov2020-10-151-26/+33
|
* Prepare for pat_field_shorthandAleksey Kladov2020-10-151-5/+13
|
* Use TextRange::contains_inclusive in fixes checkIgor Aleksanov2020-10-121-4/+2
|
* Fix code style issuesIgor Aleksanov2020-10-121-1/+0
|
* Apply case check diagnostic to impl itemsIgor Aleksanov2020-10-121-0/+24
|
* Make incorrect case diagnostic work inside of functionsIgor Aleksanov2020-10-121-0/+26
|