rust/crates
bors[bot] 5f3ff157e3 Merge #1549
1549: Show type lenses for the resolved let bindings r=matklad a=SomeoneToIgnore

Types that are fully unresolved are not displayed:

<img width="279" alt="image" src="https://user-images.githubusercontent.com/2690773/61518122-8e4ba980-aa11-11e9-9249-6d9f9b202e6a.png">

A few concerns that I have about the current implementation:

* I've adjusted the `file_structure` API method to return the information about the `let` bindings.
Although it works fine, I have a feeling that adding a new API method would be the better way.
But this requires some prior discussion, so I've decided to go for an easy way with an MVP. 
Would be nice to hear your suggestions.

* There's a hardcoded `{undersolved}` check that I was forced to use, since the method that resolves types returns a `String`. 
Is there a better typed API I can use? This will help, for instance, to add an action to the type lenses that will allow us to navigate to the type.

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2019-07-23 09:51:40 +00:00
..
gen_lsp_server flexi_logger 0.14 2019-07-22 13:13:55 -04:00
ra_arena allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_assists streamline API 2019-07-21 13:28:58 +03:00
ra_batch Remove unused dependencies 2019-07-09 00:28:00 +09:00
ra_cli flexi_logger 0.14 2019-07-22 13:13:55 -04:00
ra_db make Parse generic 2019-07-18 22:55:04 +03:00
ra_fmt align SyntaxText API with upstream 2019-07-20 16:52:11 +03:00
ra_hir Merge #1570 2019-07-21 13:48:46 +00:00
ra_ide_api Code review fixes 2019-07-22 23:25:13 +03:00
ra_lsp_server Merge #1549 2019-07-23 09:51:40 +00:00
ra_mbe switch to upstream rowan's API 2019-07-20 20:12:06 +03:00
ra_parser add await to syntax, parser for await_expr 2019-07-20 17:41:31 +09:00
ra_prof jemallocator 0.3 2019-07-17 10:58:17 -04:00
ra_project_model Remove unused dependencies 2019-07-09 00:28:00 +09:00
ra_syntax kill old lexer 2019-07-22 17:56:19 +03:00
ra_text_edit allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_tools allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_tt allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
test_utils Remove unused dependencies 2019-07-09 00:28:00 +09:00
thread_worker Fix clippy::single_match 2019-06-04 18:05:07 -04:00