Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Fix record literal completion | Florian Diebold | 2020-03-07 | 2 | -3/+33 | |
| | | | ||||||
| * | | Fix range for postfix snippets | Florian Diebold | 2020-03-07 | 1 | -2/+63 | |
| | | | ||||||
| * | | Add more tests | Florian Diebold | 2020-03-07 | 2 | -0/+51 | |
| | | | ||||||
| * | | Try to complete within macros | Florian Diebold | 2020-03-07 | 4 | -27/+230 | |
| |/ | ||||||
* | | Handle visibility for assoc item path completion as well | Florian Diebold | 2020-03-08 | 1 | -2/+65 | |
| | | ||||||
* | | Handle visibility for path completion (not in all cases yet) | Florian Diebold | 2020-03-08 | 1 | -4/+40 | |
| | | ||||||
* | | Handle visibility in method call completion | Florian Diebold | 2020-03-07 | 1 | -1/+37 | |
|/ | ||||||
* | Don't creat public APIs with typos | Aleksey Kladov | 2020-03-06 | 1 | -1/+1 | |
| | ||||||
* | Trigger parameter info automatically | Aleksey Kladov | 2020-03-06 | 2 | -0/+16 | |
| | | | | See https://github.com/Microsoft/vscode/issues/64023 | |||||
* | Feature flag for arg snippets | Aleksey Kladov | 2020-03-06 | 1 | -4/+13 | |
| | ||||||
* | Fix comment order | Aleksey Kladov | 2020-03-06 | 1 | -2/+2 | |
| | ||||||
* | Skip self param when completing methods | Aleksey Kladov | 2020-03-04 | 1 | -13/+45 | |
| | ||||||
* | Support function's completion snippet | Avishay Matayev | 2020-03-04 | 2 | -14/+22 | |
| | | | | | | | Note that `detail` was replced with `function_signature` to avoid calling `from` on FunctionSignature twice. I didn't add new tests because the current ones seem enough. | |||||
* | Fix completion snippet for reexported functions | Florian Diebold | 2020-03-03 | 2 | -4/+54 | |
| | | | | Fixes #3356. | |||||
* | Merge #3384 | bors[bot] | 2020-03-01 | 1 | -0/+39 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | 3384: fix #2377 super::super::* r=flodiebold a=JoshMcguigan Thanks @matklad for the detailed explanation on #2377. I believe this fixes it. One thing I'm not sure about is you said the fix would involve changing `crates/ra_hir_def/src/path/lower/lower.rs`, but I only changed `crates/ra_hir_def/src/path/lower/lower_use.rs`. I'm not sure what kind of test code I'd have to write to expose the issue in `lower.rs`, but I'd be happy to add it if you are able to provide additional guidance. closes #2377 Co-authored-by: Josh Mcguigan <[email protected]> | |||||
| * | fix completion for super::super:: | Josh Mcguigan | 2020-03-01 | 1 | -0/+39 | |
| | | ||||||
* | | Rename ast::ImplBlock -> ast::ImplDef | Aleksey Kladov | 2020-02-29 | 2 | -32/+26 | |
|/ | ||||||
* | Refactor primary IDE API | Aleksey Kladov | 2020-02-26 | 10 | -60/+66 | |
| | | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax. | |||||
* | Refactor how builtins are resolved | Florian Diebold | 2020-02-21 | 1 | -6/+7 | |
| | | | | This fixes autocompletion suggesting e.g. self::usize. | |||||
* | Cleanup | Shotaro Yamada | 2020-02-19 | 1 | -5/+1 | |
| | ||||||
* | More manual clippy fixes | Kirill Bulatov | 2020-02-18 | 2 | -6/+6 | |
| | ||||||
* | Merge #3169 | bors[bot] | 2020-02-17 | 1 | -6/+95 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3169: Show record field names in Enum completion r=flodiebold a=adamrk Adresses https://github.com/rust-analyzer/rust-analyzer/issues/2947. Previously the details shown when autocompleting an Enum variant would look like the variant was a tuple even if it was a record: ![2020-02-16-15:59:32_crop](https://user-images.githubusercontent.com/16367467/74607233-64f21980-50d7-11ea-99db-e973e29c71d7.png) This change will show the names of the fields for a record and use curly braces instead of parentheses: ![2020-02-16-15:33:00_crop](https://user-images.githubusercontent.com/16367467/74607251-8ce17d00-50d7-11ea-9d4d-38d198a4aec0.png) This required exposing the type `adt::StructKind` from `ra_hir` and adding a function ``` kind(self, db: &impl HirDatabase) -> StructKind ``` in the `impl` of `EnumVariant`. There was also a previously existing function `is_unit(self, db: &impl HirDatabase) -> bool` for `EnumVariant` which I removed because it seemed redundant after adding `kind`. Co-authored-by: adamrk <[email protected]> | |||||
| * | add space before/after wrapping braces | adamrk | 2020-02-16 | 1 | -2/+2 | |
| | | ||||||
| * | show names for record fields in enum completion | adamrk | 2020-02-16 | 1 | -6/+95 | |
| | | ||||||
* | | Added module doc comment to explain the purpose of the completion. | Kevin DeLorey | 2020-02-15 | 1 | -1/+32 | |
| | | ||||||
* | | Fixed bug that allowed for completion in a nested method. | Kevin DeLorey | 2020-02-15 | 1 | -7/+36 | |
| | | ||||||
* | | Reordered the `use` items. | Kevin DeLorey | 2020-02-15 | 1 | -9/+8 | |
| | | ||||||
* | | Adjusted the completion lookups to filter by just the name. | Kevin DeLorey | 2020-02-14 | 1 | -29/+44 | |
| | | ||||||
* | | Completion now replaces whole fn/const/type def with snippet. | Kevin DeLorey | 2020-02-13 | 1 | -16/+31 | |
| | | ||||||
* | | Cheese const tests as they requre an ident before becoming a CONST_DEF. | Kevin DeLorey | 2020-02-13 | 1 | -28/+21 | |
| | | ||||||
* | | Started to refactor the trigger of the trait_impl completion. | Kevin DeLorey | 2020-02-13 | 1 | -33/+77 | |
| | | ||||||
* | | Formatting. | Kevin DeLorey | 2020-02-11 | 1 | -1/+3 | |
| | | ||||||
* | | Fixing minor suggestions and added module level documentation. | Kevin DeLorey | 2020-02-11 | 1 | -9/+6 | |
| | | ||||||
* | | 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 | 1 | -114/+18 | |
| | | ||||||
* | | Merge branch 'master' into kdelorey/complete-trait-impl | Kevin DeLorey | 2020-02-09 | 3 | -118/+8 | |
|\| | ||||||
| * | 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 | |
| | | ||||||
| * | cleanup imports | Aleksey Kladov | 2020-02-06 | 1 | -3/+4 | |
| | | ||||||
| * | Code review fixes | Kirill Bulatov | 2020-02-02 | 1 | -15/+11 | |
| | | ||||||
| * | Require ModPath for importing | Kirill Bulatov | 2020-02-02 | 1 | -24/+47 | |
| | | ||||||
* | | Added associated type completion. | Kevin DeLorey | 2020-02-08 | 1 | -3/+15 | |
| | | ||||||
* | | Cleaning up unessicary code that the Magic completion takes care of. | Kevin DeLorey | 2020-02-08 | 1 | -39/+8 | |
| | | ||||||
* | | Got the magic completion working. | Kevin DeLorey | 2020-02-08 | 2 | -41/+16 | |
| | | ||||||
* | | Update completion kind to Magic in the unit tests. | Kevin DeLorey | 2020-02-08 | 1 | -2/+2 | |
| | |