Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Removed doc comments entirely from the changes. | Kevin DeLorey | 2020-02-11 | 1 | -39/+0 |
| | |||||
* | Formatted changes. | Kevin DeLorey | 2020-02-11 | 1 | -22/+16 |
| | |||||
* | Removed docs from private method. | Kevin DeLorey | 2020-02-11 | 1 | -8/+0 |
| | |||||
* | Added tests to test associated types and consts. | Kevin DeLorey | 2020-02-11 | 1 | -0/+78 |
| | |||||
* | Added some documentation to the `complete_trait_impl` completion. | Kevin DeLorey | 2020-02-11 | 1 | -1/+48 |
| | |||||
* | Added associated const magic completion. | Kevin DeLorey | 2020-02-10 | 1 | -11/+53 |
| | |||||
* | Added a utility function that can be used to determine the missing impl items. | Kevin DeLorey | 2020-02-09 | 2 | -115/+19 |
| | |||||
* | Merge branch 'master' into kdelorey/complete-trait-impl | Kevin DeLorey | 2020-02-09 | 42 | -2294/+659 |
|\ | |||||
| * | Simplify Assists interface | Aleksey Kladov | 2020-02-09 | 1 | -18/+6 |
| | | | | | | | | | | Instead of building a physical tree structure, just "tag" related assists with the same group | ||||
| * | Remove hard-coded auto-import during completion | Aleksey Kladov | 2020-02-09 | 1 | -128/+3 |
| | | | | | | | | We now have a real auto-import system, so we can do a proper thing. | ||||
| * | Rename add import assist | Kirill Bulatov | 2020-02-07 | 1 | -7/+2 |
| | | |||||
| * | Rename | Aleksey Kladov | 2020-02-07 | 4 | -18/+18 |
| | | |||||
| * | Remove irrelevant distinction | Aleksey Kladov | 2020-02-07 | 5 | -20/+18 |
| | | |||||
| * | Minor rename | Aleksey Kladov | 2020-02-06 | 1 | -2/+2 |
| | | |||||
| * | Mostly remove ImoportLocator infra | Aleksey Kladov | 2020-02-06 | 1 | -1/+1 |
| | | |||||
| * | Make assists use ImportsLocator directly | Aleksey Kladov | 2020-02-06 | 1 | -2/+2 |
| | | |||||
| * | Move imports locator to ide_db | Aleksey Kladov | 2020-02-06 | 3 | -78/+2 |
| | | |||||
| * | Move NameKind up | Aleksey Kladov | 2020-02-06 | 5 | -253/+57 |
| | | |||||
| * | Simplify | Aleksey Kladov | 2020-02-06 | 1 | -3/+4 |
| | | |||||
| * | Tweak goto parent module | Aleksey Kladov | 2020-02-06 | 2 | -1/+37 |
| | | |||||
| * | Cleanup | Aleksey Kladov | 2020-02-06 | 1 | -0/+74 |
| | | |||||
| * | cleanup imports | Aleksey Kladov | 2020-02-06 | 30 | -99/+101 |
| | | |||||
| * | Move to a crate | Aleksey Kladov | 2020-02-06 | 9 | -1677/+4 |
| | | |||||
| * | Move change to ide-db | Aleksey Kladov | 2020-02-06 | 3 | -5/+5 |
| | | |||||
| * | Fix test imports | Aleksey Kladov | 2020-02-06 | 1 | -2/+4 |
| | | |||||
| * | Move Query | Aleksey Kladov | 2020-02-06 | 2 | -41/+42 |
| | | |||||
| * | Move symbol_index | Aleksey Kladov | 2020-02-06 | 7 | -12/+16 |
| | | |||||
| * | Move FeatureFlags | Aleksey Kladov | 2020-02-06 | 3 | -4/+3 |
| | | |||||
| * | Move line_index | Aleksey Kladov | 2020-02-06 | 4 | -7/+12 |
| | | |||||
| * | Move ide-db | Aleksey Kladov | 2020-02-06 | 2 | -132/+132 |
| | | |||||
| * | Start ide_db | Aleksey Kladov | 2020-02-06 | 2 | -0/+3 |
| | | |||||
| * | Apply the reviews suggestions | Kirill Bulatov | 2020-02-05 | 1 | -2/+4 |
| | | |||||
| * | minor, if let else -> match | Aleksey Kladov | 2020-02-04 | 1 | -6/+3 |
| | | |||||
| * | ra_syntax: refactored the lexer design as per @matklad and @kiljacken PR review | Veetaha | 2020-02-03 | 1 | -2/+4 |
| | | |||||
| * | Reimplemented lexer with vectors instead of iterators | Veetaha | 2020-02-03 | 1 | -6/+4 |
| | | |||||
| * | Fix inlay hints test snippet compilation | Kirill Bulatov | 2020-02-03 | 1 | -8/+8 |
| | | |||||
| * | Avoid premature pessimization | Aleksey Kladov | 2020-02-02 | 1 | -0/+2 |
| | | | | | | | | | | | | The extra allocation for message should not matter here at all, but using a static string is just as ergonomic, if not more, and there's no reason to write deliberately slow code | ||||
| * | Code review fixes | Kirill Bulatov | 2020-02-02 | 1 | -15/+11 |
| | | |||||
| * | Require ModPath for importing | Kirill Bulatov | 2020-02-02 | 1 | -24/+47 |
| | | |||||
| * | Re-sync queries for memory usage measurnment | Aleksey Kladov | 2020-01-29 | 1 | -11/+40 |
| | | |||||
| * | Improves reference search by StructLiteral | Mikhail Modin | 2020-01-27 | 1 | -27/+111 |
| | | |||||
| * | Merge #2883 | bors[bot] | 2020-01-27 | 4 | -111/+208 |
| |\ | | | | | | | | | | | | | | | | | | | | | | 2883: Implement Syntax Highlight inside macro call r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]> | ||||
| | * | Implement Syntax Highlight inside Macro | Edwin Cheng | 2020-01-20 | 4 | -111/+208 |
| | | | |||||
| * | | Merge #2887 | bors[bot] | 2020-01-27 | 3 | -3/+81 |
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2887: Initial auto import action implementation r=matklad a=SomeoneToIgnore Closes https://github.com/rust-analyzer/rust-analyzer/issues/2180 Adds an auto import action implementation. This implementation is not ideal and has a few limitations: * The import search functionality should be moved into a separate crate accessible from ra_assists. This requires a lot of changes and a preliminary design. Currently the functionality is provided as a trait impl, more on that here: https://github.com/rust-analyzer/rust-analyzer/issues/2180#issuecomment-575690942 * Due to the design desicion from the previous item, no doctests are run for the new aciton (look for a new FIXME in the PR) * For the same reason, I have to create the mock trait implementaion to test the assist * Ideally, I think we should have this feature as a diagnostics (that detects an absense of an import) that has a corresponding quickfix action that gets evaluated on demand. Curretly we perform the import search every time we resolve the import which looks suboptimal. This requires `classify_name_ref` to be moved from ra_ide, so not done currently. A few improvements to the imports mechanism to be considered later: * Constants like `ra_syntax::SyntaxKind::NAME` are not imported, because they are not present in the database * Method usages are not imported, they are found in the database, but `find_use_path` does not return any import paths for them * Some import paths returned by the `find_use_path` method end up in `core::` or `alloc::` instead of `std:`, for example: `core::fmt::Debug` instead of `std::fmt::Debug`. This is not an error techically, but still looks weird. * No detection of cases where a trait should be imported in order to be able to call a method * Improve `auto_import_text_edit` functionality: refactor it and move away from the place it is now, add better logic for merging the new import with already existing imports Co-authored-by: Kirill Bulatov <[email protected]> | ||||
| | * | | Code review fixes | Kirill Bulatov | 2020-01-27 | 1 | -1/+1 |
| | | | | |||||
| | * | | Have a better trait interface | Kirill Bulatov | 2020-01-26 | 1 | -46/+24 |
| | | | | |||||
| | * | | Raise the import search query cap | Kirill Bulatov | 2020-01-26 | 1 | -2/+3 |
| | | | | |||||
| | * | | Remove unnecessary lifetime parameter | Kirill Bulatov | 2020-01-26 | 1 | -1/+1 |
| | | | | |||||
| | * | | Initial auto import action implementation | Kirill Bulatov | 2020-01-26 | 3 | -3/+102 |
| | | | | |||||
| * | | | Update crates | Jeremy Kolb | 2020-01-26 | 1 | -1/+1 |
| |/ / |