aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_db/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Generate features docs from sourceAleksey Kladov2020-05-311-0/+21
|
* KISS SourceChangeAleksey Kladov2020-05-221-59/+20
| | | | | | 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 positionsAleksey Kladov2020-05-213-321/+1
|
* Remove unused cursor positionsAleksey Kladov2020-05-211-3/+2
|
* Remove cross-crate marksAleksey Kladov2020-05-204-23/+2
| | | | | They create quite a bit of friction. Really, we should just move the tests to the same crate, rather than paper over existing split.
* Add AssistConfigAleksey Kladov2020-05-191-0/+5
|
* New definition_visibility methodFedor Sakharov2020-05-111-13/+2
|
* Also for consts and type aliasesFedor Sakharov2020-05-111-0/+2
|
* Find references to a function outside moduleFedor Sakharov2020-05-111-0/+1
|
* Remove HasVisibility implementationFedor Sakharov2020-05-071-2/+5
|
* Fix rename of enum variant visible from moduleFedor Sakharov2020-05-061-1/+4
|
* Use SourceChange for assistsAleksey Kladov2020-05-061-3/+3
|
* Lift SourceChange to the ra_ide_dbAleksey Kladov2020-05-062-0/+121
|
* Rename AtomTextEdit -> IndelAleksey Kladov2020-05-051-3/+3
|
* Fix column conversion for supplementary plane charactersLaurențiu Nicola2020-05-051-2/+15
|
* refactor: use parent instead ancestors for use aliasBenjamin Coenen2020-05-041-1/+1
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Merge #4269 #4293bors[bot]2020-05-042-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4269: add support of use alias semantic in definition r=matklad a=bnjjj close #4202 4293: no doctests for flycheck r=matklad a=matklad bors r+ 🤖 Co-authored-by: Benjamin Coenen <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| * add support of use alias semantic in definition #4202Benjamin Coenen2020-05-021-5/+9
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
| * wipBenjamin Coenen2020-05-012-1/+8
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | Don't count start of non-ASCII characters as being inside of themLaurențiu Nicola2020-05-031-3/+9
|/
* Rename StructField -> FieldAleksey Kladov2020-04-252-17/+17
|
* Switch to TryFromAleksey Kladov2020-04-253-17/+20
|
* CleanupsAleksey Kladov2020-04-252-15/+12
|
* Convert code to text-sizeAleksey Kladov2020-04-253-56/+55
|
* Remove SyntaxPtr::range from more placesAleksey Kladov2020-04-231-0/+2
|
* Fix goto definition for record patternsAleksey Kladov2020-04-182-0/+10
|
* Don't expose SyntaxNodePtr impl detailsAleksey Kladov2020-04-161-1/+3
|
* Make records grammar more orthogonalAleksey Kladov2020-04-111-1/+1
| | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler
* Fix unnecessary braces warningsLaurențiu Nicola2020-04-062-9/+9
|
* Reload only the properties that do not affect vfsKirill Bulatov2020-03-301-4/+8
|
* Cleanup memory usage statsAleksey Kladov2020-03-251-2/+10
|
* Use visibility_of in searchEdwin Cheng2020-03-241-35/+31
|
* Add ItemScope::visibility_ofEdwin Cheng2020-03-241-23/+8
|
* Use more generic public apiKirill Bulatov2020-03-241-2/+8
|
* Auto import macrosKirill Bulatov2020-03-241-6/+2
|
* Merge pull request #3678 from edwin0cheng/refactor-renameAleksey Kladov2020-03-231-16/+4
|\ | | | | Fix rename argument in macro call
| * Refactor searchEdwin Cheng2020-03-221-16/+4
| |
* | Add support for macro in symbo_indexEdwin Cheng2020-03-221-0/+7
|/
* Use `dyn Trait` for working with databseAleksey Kladov2020-03-161-1/+14
| | | | | | | It improves compile time in `--release` mode quite a bit, it doesn't really slow things down and, conceptually, it seems closer to what we want the physical architecture to look like (we don't want to monomorphise EVERYTHING in a single leaf crate).
* Remove some TextUnit->usize escapeesCAD972020-03-132-8/+8
|
* Merge #3549bors[bot]2020-03-111-0/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3549: Implement env! macro r=matklad a=edwin0cheng This PR implements `env!` macro by adding following things: 1. Added `additional_outdirs` settings in vscode. (naming to be bikeshed) 2. Added `ExternSourceId` which is a wrapping for SourceRootId but only used in extern sources. It is because `OUT_DIR` is not belonged to any crate and we have to access it behind an `AstDatabase`. 3. This PR does not implement the `OUT_DIR` parsing from `cargo check`. I don't have general design about this, @kiljacken could we reuse some cargo watch code for that ? ~~Block on [#3536]~~ PS: After this PR , we (kind of) completed the `include!(concat!(env!('OUT_DIR'), "foo.rs")` macro call combo. [Exodia Obliterate!](https://www.youtube.com/watch?v=RfqNH3FoGi0) Co-authored-by: Edwin Cheng <[email protected]>
| * Add resolve_extern_path in DBEdwin Cheng2020-03-101-0/+7
| |
* | Merge #3542bors[bot]2020-03-111-5/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3542: Renames work on struct field shorthands r=matklad a=m-n When renaming either a local or a struct field, struct field shorthands are now renamed correctly. Happy to refactor this if it doesn't fit the design of the code. Thanks for adding the suggestion of where to start on the issue. I wasn't sure if I should also look at the behavior of renaming when placing the cursor at the field shorthand; the following describes the behavior with this patch: ```rust #[test] fn test_rename_field_shorthand_for_unspecified() { // when renaming a shorthand, should we have a way to specify // between renaming the field and the local? // // If not is this the correct default? test_rename( r#" struct Foo { i: i32, } impl Foo { fn new(i: i32) -> Self { Self { i<|> } } } "#, "j", r#" struct Foo { i: i32, } impl Foo { fn new(j: i32) -> Self { Self { i: j } } } "#, ); } ``` Resolves #3431 Co-authored-by: Matt Niemeir <[email protected]>
| * | find_usages limited to actual usages againMatt Niemeir2020-03-111-14/+14
| | |
| * | Renaming a local renames struct field shorthandMatt Niemeir2020-03-101-9/+15
| | |
| * | Struct field rename renames field in constructor field shorthandMatt Niemeir2020-03-101-5/+17
| | |
* | | Move FeatureFlagsAleksey Kladov2020-03-102-84/+3
| | |
* | | Pull completion options up to the rust-analyzerAleksey Kladov2020-03-101-0/+4
| |/ |/|
* | :arrow_up: fstAleksey Kladov2020-03-101-2/+2
|/
* Consider crate declaration namesKirill Bulatov2020-03-082-11/+1
|