Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix namespace detection & function test | Zac Pullar-Strecker | 2020-10-08 | 1 | -6/+2 |
| | |||||
* | Add tests | Zac Pullar-Strecker | 2020-10-08 | 1 | -2/+94 |
| | |||||
* | Change Option::Some bug to a fixme note | Zac Pullar-Strecker | 2020-10-08 | 1 | -3/+3 |
| | | | | IMO this is too much work to be worth fixing at the moment. | ||||
* | Differentiate method/tymethod by determining 'defaultness' | Zac Pullar-Strecker | 2020-10-08 | 1 | -5/+14 |
| | | | | | | | | | Currently a method only has defaultness if it is a provided trait method, but this will change when specialisation is available and may need to become a concept known to hir. I opted to go for a 'fewest changes' approach given specialisation is still under development. | ||||
* | Code reorganisation and field support | Zac Pullar-Strecker | 2020-10-08 | 2 | -54/+47 |
| | |||||
* | Changes from review | Zac Pullar-Strecker | 2020-10-08 | 2 | -4/+1 |
| | |||||
* | Rename ide::link_rewrite -> ide::doc_links & tidy imports | Zac Pullar-Strecker | 2020-10-08 | 3 | -4/+4 |
| | |||||
* | Add support for struct & trait methods | Zac Pullar-Strecker | 2020-10-08 | 1 | -7/+83 |
| | |||||
* | WIP: Command to open docs under cursor | Zac Pullar-Strecker | 2020-10-08 | 2 | -1/+89 |
| | |||||
* | Merge #6154 | bors[bot] | 2020-10-07 | 1 | -39/+162 |
|\ | | | | | | | | | | | | | | | | | | | | | 6154: Shorten type hints for std::iter Iterators r=SomeoneToIgnore a=Veykril Fixes #3750. This re-exports the `hir_expand::name::known` module to be able to fetch the `Iterator` and `iter` names. I'm not sure if there is anything to do with `Solution::Ambig` in `normalize_trait_assoc_type` or whether discarding those results is always wanted. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Clean up inlay_hints | Lukas Wirth | 2020-10-07 | 1 | -18/+14 |
| | | |||||
| * | Shorten iterator hints for std::iter iterators behind references | Lukas Wirth | 2020-10-07 | 1 | -2/+4 |
| | | |||||
| * | Shorten iterator chain hints | Lukas Wirth | 2020-10-07 | 1 | -36/+81 |
| | | |||||
| * | Move IntoIterator into FamousDefs | Lukas Wirth | 2020-10-07 | 1 | -23/+5 |
| | | |||||
| * | Use FamousDefs for shorten_iterator hint | Lukas Wirth | 2020-10-06 | 1 | -57/+36 |
| | | |||||
| * | Shorten type hints for std::iter Iterators | Lukas Wirth | 2020-10-06 | 1 | -6/+125 |
| | | |||||
* | | Merge #6128 | bors[bot] | 2020-10-06 | 1 | -4/+25 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 6128: Trim all trailing whitespace in onEnter r=matklad a=repnop Fixes #5848 Co-authored-by: Wesley Norris <[email protected]> | ||||
| * | | Trim all trailing whitespace in onEnter | Wesley Norris | 2020-10-03 | 1 | -4/+25 |
| | | | | | | | | | | | | Fixes #5848 | ||||
* | | | Merge #6140 | bors[bot] | 2020-10-06 | 3 | -7/+71 |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6140: honour hover.content_format client capability r=lnicola a=robinvd This removes all markdown when the client does not support the markdown MarkupKind. Otherwise the output on the editor will have some markdown boilerplate, making it less readable. For example kak_lsp does not currently support markdown. ![image](https://user-images.githubusercontent.com/22073483/95112949-ef0ff080-0741-11eb-82a7-0594fa2cd736.png) after: ![image](https://user-images.githubusercontent.com/22073483/95113089-2bdbe780-0742-11eb-94fa-bcfec6d7347a.png) Co-authored-by: Robin van Dijk <[email protected]> | ||||
| * | | add break after codeblocks | Robin van Dijk | 2020-10-06 | 1 | -2/+4 |
| | | | |||||
| * | | add doc describing limited capabilities | Robin van Dijk | 2020-10-06 | 1 | -0/+2 |
| | | | |||||
| * | | add docstring | Robin van Dijk | 2020-10-05 | 1 | -0/+3 |
| | | | |||||
| * | | honor content_format clientcap | Robin van Dijk | 2020-10-05 | 3 | -7/+64 |
| |/ | | | | | | | | | | | This removes all markdown when the client does not support the markdown MarkupKind Otherwise the output on the editor will have some markdown boilerplate, making it less readable | ||||
* | | Merge #6148 | bors[bot] | 2020-10-06 | 1 | -0/+34 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 6148: Fix trait object hir formatting behind pointer and references r=matklad a=Veykril Fixes #6064 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | Fix trait object hir formatting behind pointer and references | Lukas Wirth | 2020-10-06 | 1 | -0/+34 |
| |/ | |||||
* | | Merge #6124 | bors[bot] | 2020-10-06 | 3 | -5/+35 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6124: Better normalized crate name usage r=jonas-schievink a=SomeoneToIgnore Closes https://github.com/rust-analyzer/rust-analyzer/issues/5343 Closes https://github.com/rust-analyzer/rust-analyzer/issues/5932 Uses normalized name for code snippets (to be able to test the fix), hover messages and documentation rewrite links (are there any tests for those?). Also renamed the field to better resemble the semantics. Co-authored-by: Kirill Bulatov <[email protected]> | ||||
| * | | Properly name the field | Kirill Bulatov | 2020-10-02 | 3 | -5/+5 |
| | | | |||||
| * | | Add a dash test | Kirill Bulatov | 2020-10-02 | 1 | -0/+30 |
| | | | |||||
* | | | Merge #6127 | bors[bot] | 2020-10-05 | 2 | -2/+23 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6127: Correctly complete items with leading underscore r=SomeoneToIgnore a=fmease Fixes #6091. Let me know if the test is placed into the right file or if it is even desired. Co-authored-by: León Orell Valerian Liehr <[email protected]> | ||||
| * | | | Correctly complete items with leading underscore | León Orell Valerian Liehr | 2020-10-03 | 2 | -2/+23 |
| |/ / | |||||
* | / | Fix feature name | Aleksey Kladov | 2020-10-05 | 1 | -1/+1 |
| |/ |/| | |||||
* | | Improve readability in inlay_hints.rs | Igor Aleksanov | 2020-10-03 | 1 | -4/+5 |
| | | |||||
* | | Remove 'for_expr' test from inlay_hints.rs | Igor Aleksanov | 2020-10-03 | 1 | -14/+1 |
| | | |||||
* | | Make the tests for complete/incomplete for inlay hints work | Igor Aleksanov | 2020-10-03 | 1 | -10/+77 |
| | | |||||
* | | Better inlay hints in 'for' loops | Igor Aleksanov | 2020-10-03 | 1 | -2/+49 |
|/ | |||||
* | rename mock_analysis -> fixture | Aleksey Kladov | 2020-10-02 | 23 | -99/+90 |
| | |||||
* | Get rid of MockAnalysis | Aleksey Kladov | 2020-10-02 | 18 | -414/+280 |
| | |||||
* | Move ide::AnalysisChange -> base_db::Change | Aleksey Kladov | 2020-10-02 | 3 | -10/+7 |
| | | | | | | This seems like a better factoring logically; ideally, clients shouldn't touch `set_` methods of the database directly. Additionally, I think this should remove the unfortunate duplication in fixture code. | ||||
* | Expectify find_references tests | Aleksey Kladov | 2020-10-02 | 1 | -176/+181 |
| | |||||
* | Reduce visibiity | Aleksey Kladov | 2020-10-02 | 2 | -13/+14 |
| | |||||
* | Use expect_test to make format_str_parser test more data-driven | Igor Aleksanov | 2020-10-02 | 1 | -35/+35 |
| | |||||
* | Use lookup table instead of enum for postfix completion kinds | Igor Aleksanov | 2020-10-02 | 1 | -62/+20 |
| | |||||
* | Use ast::String for extracting string literal contents | Igor Aleksanov | 2020-10-02 | 2 | -14/+19 |
| | |||||
* | Improve format-like completions code appearance | Igor Aleksanov | 2020-10-02 | 2 | -32/+26 |
| | |||||
* | Add missing entry to doc-comment | Igor Aleksanov | 2020-10-02 | 1 | -0/+1 |
| | |||||
* | Simplify is_string_literal function | Igor Aleksanov | 2020-10-02 | 1 | -9/+5 |
| | |||||
* | Improve checks for postfix suggestions | Igor Aleksanov | 2020-10-02 | 3 | -16/+23 |
| | |||||
* | Add postfix completion for format-like string literals | Igor Aleksanov | 2020-10-02 | 3 | -1/+376 |
| | |||||
* | Minor clippy performance suggestions | kjeremy | 2020-09-30 | 1 | -2/+2 |
| | |||||
* | Extend **Status** command to also show dep info for the file | Aleksey Kladov | 2020-09-29 | 2 | -18/+35 |
| | | | | This should help with troubleshooting wrong project configuration |