rust/crates
bors[bot] 88be6f3217 Merge #1137
1137: Adds support for multiple editor workspaces on initialization r=matklad a=jrvidal

OK, so this "simple hack" turned out to be way more contrived than I expected 😂

### What works
This patch only handles multi-folder editor workspaces _on initialization_.
  * I've found that modifying the layout of a workspace in VSCode just reloads the extension, so this hack should be enough for now.
  * Not sure about how emacs-lsp behaves, but we fallback gracefully to the mono-folder workspace, so it should be fine.

### What doesn't work
* [x] `cargo watch` can only watch a single root folder with a `Cargo.toml`. I've left this part untouched but we could either warn that it's not supported or launch _multiple_ `cargo-watch` processes.
* [x] The `rust-analyzer/runnables` command is not functional, since we don't send the correct `cwd`.
* [x] Should we add some happy path test to `heavy_tests`?
* [ ] Going from a single `root` to multiple `roots` leaves us with a couple of `n * m` loops that smell a bit. The number of folders in the editor workspace is probably low though.

Co-authored-by: Roberto Vidal <vidal.roberto.j@gmail.com>
2019-04-14 17:26:07 +00:00
..
gen_lsp_server
ra_arena
ra_assists replace usages of algo::generate with iter::successors from std 2019-04-13 16:43:49 +02:00
ra_batch migrate to salsas interning 2019-04-09 22:51:22 +03:00
ra_cli Merge #1068 2019-04-03 09:09:11 +00:00
ra_db drop old interning infra 2019-04-09 22:52:06 +03:00
ra_fmt replace usages of algo::generate with iter::successors from std 2019-04-13 16:43:49 +02:00
ra_hir Extract generic_params method to a HasGenericParams trait 2019-04-14 13:07:45 +02:00
ra_ide_api Get substs for trait refs in impl blocks 2019-04-14 11:28:53 +02:00
ra_lsp_server Modifies runnables test to use multi-workspace root 2019-04-14 10:04:38 +02:00
ra_mbe Fix bug and add expr , pat , ty matcher 2019-04-14 11:42:20 +08:00
ra_parser Merge #1138 2019-04-14 14:16:42 +00:00
ra_prof added some docs to public functions 2019-04-03 16:05:55 +03:00
ra_project_model Sends cwd info for runnables and code lenses 2019-04-14 10:04:38 +02:00
ra_syntax Merge #1138 2019-04-14 14:16:42 +00:00
ra_text_edit Disable fork feature for proptest 2019-03-23 08:57:07 +01:00
ra_tt
test_utils
thread_worker
tools Use EXE extension for pre-commit hook on Window 2019-03-27 07:52:59 +01:00