aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
Commit message (Collapse)AuthorAgeFilesLines
* Better naming and docsKirill Bulatov2020-08-112-2/+3
|
* Simplify fix structureKirill Bulatov2020-08-113-92/+89
|
* Add rustdocsKirill Bulatov2020-08-111-1/+3
|
* Improve the ide diagnostics trait APIKirill Bulatov2020-08-112-191/+160
|
* Move the DiagnosticsWithFix trait on the ide levelKirill Bulatov2020-08-112-7/+67
|
* Make the fix AST source OptionalKirill Bulatov2020-08-111-37/+50
|
* Refactor the diagnosticsKirill Bulatov2020-08-111-37/+39
|
* Better namingKirill Bulatov2020-08-111-14/+17
|
* Less stubsKirill Bulatov2020-08-111-6/+2
|
* Custom ranges for missing fieldsKirill Bulatov2020-08-111-2/+4
|
* Separate diagnostics and diagnostics fix rangesKirill Bulatov2020-08-112-44/+56
|
* Use Hygiene in completionLaurențiu Nicola2020-08-111-5/+5
|
* Better codesJmPotato2020-08-101-8/+4
| | | | Signed-off-by: JmPotato <[email protected]>
* Show const body in short_labelJmPotato2020-08-102-5/+13
| | | | Signed-off-by: JmPotato <[email protected]>
* Merge #5692bors[bot]2020-08-107-12/+142
|\ | | | | | | | | | | | | | | | | | | 5692: Add support for extern crate r=jonas-schievink a=Nashenas88 This adds syntax highlighting, hover and goto def functionality for extern crate. Fixes #5690 Co-authored-by: Paul Daniel Faria <[email protected]>
| * Remove Option<...> from result of Crate::root_modulePaul Daniel Faria2020-08-093-6/+7
| | | | | | | | | | There doesn't seem to be any need for it, and removing it simplies several paths of code that depend on it.
| * Add support for extern cratePaul Daniel Faria2020-08-087-13/+142
| | | | | | | | | | This adds syntax highlighting, hover and goto def functionality for extern crate
* | format in to_proto::markup_contentJmPotato2020-08-091-0/+31
| | | | | | | | Signed-off-by: JmPotato <[email protected]>
* | Merge #5684bors[bot]2020-08-083-10/+78
|\ \ | |/ |/| | | | | | | | | | | | | | | 5684: Semantic highlighting for unsafe union field access r=jonas-schievink a=Nashenas88 This change adds support for unions in inference and lowering, then extends on that to add the unsafe semantic modifier on field access only. The `is_possibly_unsafe` function in `syntax_highlighting.rs` could be extended to support fns and static muts so that their definitions are not highlighted as unsafe, but only their usage. Also, each commit of this PR updates the tests. By reviewing the files by commit, it's easy to see how the changes in the code affected the tests. Co-authored-by: Paul Daniel Faria <[email protected]>
| * Apply unsafe semantic highlighting to union field accessPaul Daniel Faria2020-08-082-13/+59
| |
| * Add support for unions in inference and loweringPaul Daniel Faria2020-08-081-4/+4
| |
| * Add test for unsafe union field access highlightingPaul Daniel Faria2020-08-072-0/+22
| |
* | Mark static mutable names as unsafePaul Daniel Faria2020-08-073-4/+5
| |
* | Add test for accessing static mutPaul Daniel Faria2020-08-072-0/+14
|/
* align names in makeAleksey Kladov2020-08-051-4/+6
|
* When resolving a rename, fallback to the name higher in the use tree if the ↵Paul Daniel Faria2020-08-041-1/+1
| | | | path segment is `self`
* Add test showing unresolved module renamePaul Daniel Faria2020-08-042-1/+7
|
* Fold trait declarationsLaurențiu Nicola2020-08-031-1/+22
|
* Update grammarAleksey Kladov2020-08-012-2/+2
|
* Rename DotDotPat -> RestPatAleksey Kladov2020-07-311-1/+1
|
* RenameAleksey Kladov2020-07-313-4/+4
|
* Rename BindPat -> IdentPatAleksey Kladov2020-07-316-17/+21
|
* Allign RecordPat with RecordExprAleksey Kladov2020-07-313-5/+5
|
* Rename TypeArgList -> GenericArgListAleksey Kladov2020-07-312-2/+2
|
* Rename LambdaExpr -> ClosureExprAleksey Kladov2020-07-311-1/+1
|
* Rename TypeRef -> TypeAleksey Kladov2020-07-313-4/+4
| | | | | | | | | | The TypeRef name comes from IntelliJ days, where you often have both type *syntax* as well as *semantical* representation of types in scope. And naming both Type is confusing. In rust-analyzer however, we use ast types as `ast::Type`, and have many more semantic counterparts to ast types, so avoiding name clash here is just confusing.
* Use ty to access most TypeRefsAleksey Kladov2020-07-302-2/+2
|
* Remove TypeAscriptionOwnerAleksey Kladov2020-07-304-31/+22
|
* Finalize attribute grammarAleksey Kladov2020-07-301-6/+4
|
* Finalize impl GrammarAleksey Kladov2020-07-306-15/+14
|
* Finalize Trait grammarAleksey Kladov2020-07-307-25/+25
|
* fmtAleksey Kladov2020-07-301-4/+3
|
* Finalize const&static grammarAleksey Kladov2020-07-306-17/+17
|
* Rename EnumVariant -> VariantAleksey Kladov2020-07-307-10/+10
|
* Rename EnumDef -> EnumAleksey Kladov2020-07-305-9/+9
|
* Rename StructDef -> StructAleksey Kladov2020-07-307-32/+32
|
* Finalize union grammarAleksey Kladov2020-07-304-4/+4
|
* Rename FieldDef -> FieldAleksey Kladov2020-07-308-19/+19
|
* Rename RecordLit -> RecordExprAleksey Kladov2020-07-305-10/+10
|
* Rename TypeParamList -> GenericParamListAleksey Kladov2020-07-304-6/+6
|