]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoREADME is short and up to the point
Aleksey Kladov [Wed, 20 Mar 2019 07:00:54 +0000 (10:00 +0300)]
README is short and up to the point

5 years agointroduce docs dir
Aleksey Kladov [Wed, 20 Mar 2019 06:37:51 +0000 (09:37 +0300)]
introduce docs dir

5 years agoMerge #998
bors[bot] [Tue, 19 Mar 2019 15:35:32 +0000 (15:35 +0000)]
Merge #998

998: import resolution is immutable r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoimport resolution is immutable
Aleksey Kladov [Tue, 19 Mar 2019 15:35:03 +0000 (18:35 +0300)]
import resolution is immutable

5 years agoMerge #996
bors[bot] [Tue, 19 Mar 2019 10:36:17 +0000 (10:36 +0000)]
Merge #996

996: Allow attributes on top level expressions r=matklad a=pcpthm

This PR modifies parser to allow outer attributes on top level expression. Here, top level expression means either
- Expression statement e.g. `foo();`
- Last expression in a block without semicolon `bar()` in `{ foo(); bar() }`.

Except for binary operation expressions and `if` expressions, which are errors (feature gated) in rustc.
Attributes on inner expressions like `foo(#[a] 1)` are not implemented.

I first tried to implement this by passing `Maker` to expression parsers. However, this implementation couldn't parse `#[attr] foo()` correctly as `CallExpr(Attr(..), PathExpr(..), ArgList(..))` and instead parsed incorrectly as `CallExpr(PathExpr(Attr(..), ..), ArgList(..))` due to the way left recursion is handled.
In the end, I introduce `undo_completion` method. Which is not the suggested approach, but it seems not very bad.

Fix #759.

Co-authored-by: pcpthm <pcpthm@gmail.com>
5 years agoReplace `contract_child` to a less ad-hoc API
pcpthm [Tue, 19 Mar 2019 09:44:23 +0000 (18:44 +0900)]
Replace `contract_child` to a less ad-hoc API

5 years agoMark non-code block as text
pcpthm [Tue, 19 Mar 2019 09:12:05 +0000 (18:12 +0900)]
Mark non-code block as text

5 years agoError about attributes on
pcpthm [Tue, 19 Mar 2019 08:37:08 +0000 (17:37 +0900)]
Error about attributes on
unallowed types of expression statement

5 years agoAllow attributes on top level expression
pcpthm [Tue, 19 Mar 2019 08:24:02 +0000 (17:24 +0900)]
Allow attributes on top level expression
A top level expression is either
- a expression statement or
- the last expression in a block

5 years agoMerge #995
bors[bot] [Mon, 18 Mar 2019 21:52:27 +0000 (21:52 +0000)]
Merge #995

995: Install and run `cargo watch` if user agrees r=matklad a=Xanewok

This isn't a glorious patch but hopefully is useful :+1: This introduces a default background `cargo watch` task and (separately from that) asks the user on every startup if they want to run `cargo watch` (installs it if it's not available).

r? @matklad does it fit the what you've been thinking about?

Co-authored-by: Igor Matuszewski <xanewok@gmail.com>
5 years agoAppease CI
Igor Matuszewski [Mon, 18 Mar 2019 21:51:01 +0000 (22:51 +0100)]
Appease CI

5 years agoGuard auto cargo watch behind a config option
Igor Matuszewski [Mon, 18 Mar 2019 21:35:47 +0000 (22:35 +0100)]
Guard auto cargo watch behind a config option

5 years agoSeparate out the interactive cargo watch procedure
Igor Matuszewski [Mon, 18 Mar 2019 21:30:23 +0000 (22:30 +0100)]
Separate out the interactive cargo watch procedure

5 years agoReformat using Prettier
Igor Matuszewski [Mon, 18 Mar 2019 21:15:03 +0000 (22:15 +0100)]
Reformat using Prettier

5 years agoRemove unused imports
Igor Matuszewski [Mon, 18 Mar 2019 20:16:20 +0000 (21:16 +0100)]
Remove unused imports

5 years agoPrefer installing `cargo-watch` via Task API
Igor Matuszewski [Mon, 18 Mar 2019 20:13:49 +0000 (21:13 +0100)]
Prefer installing `cargo-watch` via Task API

This gives us much more fine-grained stdout buffering and ANSI terminal colors.

5 years agoRespect the user-provided label when creating task
Igor Matuszewski [Mon, 18 Mar 2019 20:04:33 +0000 (21:04 +0100)]
Respect the user-provided label when creating task

5 years agoAsk the user to install and start cargo watch
Igor Matuszewski [Mon, 18 Mar 2019 19:50:52 +0000 (20:50 +0100)]
Ask the user to install and start cargo watch

5 years agoDefine a cargo watch task
Igor Matuszewski [Mon, 18 Mar 2019 19:47:52 +0000 (20:47 +0100)]
Define a cargo watch task

5 years agoMerge #993
bors[bot] [Mon, 18 Mar 2019 19:26:45 +0000 (19:26 +0000)]
Merge #993

993: Fix installing vscode extension on MacOS r=matklad a=funkill

VSCode often installed in MacOS as `Visual Studio Code.app` package and `code` binary located at `Contents/Resources/app/bin` in package. This path not exists in `$PATH` variable and we can't run `code`.

In previous version of `do_run` function all before space was command and all after - arguments. If path or command has spaces, extracting command breaks. To fix this i extracted command to separated argument of function.

All packages can be placed in system app dir (`/Applications`) or user app dir (`~/Applications`). I created helper function for find app in this directories.

Co-authored-by: funkill2 <funkill2@gmail.com>
5 years agoset code less generic
funkill2 [Mon, 18 Mar 2019 19:18:54 +0000 (22:18 +0300)]
set code less generic

5 years agoMerge #994
bors[bot] [Mon, 18 Mar 2019 19:08:32 +0000 (19:08 +0000)]
Merge #994

994: Upgrade ra_vfs to use new Filtering r=matklad a=vipentti

Upgrade `ra_vfs` to `0.2.0` that includes the filtering.

Currently this matches the previous filtering, meaning all roots are filtered
using the same rules.

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>
5 years agoUpgrade ra_vfs to use new Filtering
Ville Penttinen [Mon, 18 Mar 2019 17:23:54 +0000 (19:23 +0200)]
Upgrade ra_vfs to use new Filtering

Currently this matches the previous filtering, meaning all roots are filtered
using the same rules.

5 years agoadded setup environment
funkill2 [Mon, 18 Mar 2019 17:27:31 +0000 (20:27 +0300)]
added setup environment

5 years agoadded helper module for appending vscode path
funkill2 [Mon, 18 Mar 2019 17:27:11 +0000 (20:27 +0300)]
added helper module for appending vscode path

5 years agoRemove redundant Runnable.range
Igor Matuszewski [Mon, 18 Mar 2019 16:53:07 +0000 (17:53 +0100)]
Remove redundant Runnable.range

5 years agoMerge #991
bors[bot] [Mon, 18 Mar 2019 09:32:28 +0000 (09:32 +0000)]
Merge #991

991: Use Marker argument for item parsers r=matklad a=pcpthm

Before doing this for expressions, I found that the pattern (Marker argument) should be applied to the item parsers because visiblity and modifiers are parsed in a separate function.

Fixed some parser bugs:
- Fix pub_expr: `pub 42;` was allowed.
- Fix incorrect parsing of crate::path: incorrectly parsed as `crate` as a visibility.

Co-authored-by: pcpthm <pcpthm@gmail.com>
5 years agoMerge #989
bors[bot] [Mon, 18 Mar 2019 08:24:18 +0000 (08:24 +0000)]
Merge #989

989: Implement naive version of fill_struct_fields assist r=matklad a=yanchith

Fixes #964

This implements the `fill_struct_fields` assist. Currently only works for named struct fields, but not for tuple structs, because we seem to be missing a `TupleStructLit` (akin to `StructLit`, but for tuple structs). I am happy to implement `TupleStructLit` parsing given some guidance (provided it's really missing) and make the assist work for tuple structs as well. Could do so either in this PR, or another one ðŸ™‚

Sorry if I missed something important, this is my first PR for Rust Analyzer.

Btw is there any way to run the assists in emacs?

UPDATE: I just realized that parsing `TupleStructLit` would be quite difficult as it it really similar, if not identical to a function call...

Co-authored-by: yanchith <yanchi.toth@gmail.com>
5 years agoOnly replace NamedFieldList and add test for preserving Self
yanchith [Mon, 18 Mar 2019 08:03:10 +0000 (09:03 +0100)]
Only replace NamedFieldList and add test for preserving Self

5 years agoRemove unachievable TODO
yanchith [Mon, 18 Mar 2019 07:19:51 +0000 (08:19 +0100)]
Remove unachievable TODO

5 years agoUse Marker argument for item parsers
pcpthm [Mon, 18 Mar 2019 05:34:08 +0000 (14:34 +0900)]
Use Marker argument for item parsers
- Fix pub_expr
- Fix incorrect parsing of crate::path

5 years agoMerge #987
bors[bot] [Mon, 18 Mar 2019 04:16:20 +0000 (04:16 +0000)]
Merge #987

987: Refactor maybe_item to use Marker argument r=pcpthm a=pcpthm

As suggested at <https://github.com/rust-analyzer/rust-analyzer/pull/980#issuecomment-473659745>.
For expression paring functions, changing signature
- from `fn(&mut Parser) -> Option<CompletedMarker>` to `fn(&mut Parser, Marker) -> Result<CompletedMarker, Marker>`
- from `fn(&mut Parser) -> CompletedMarker` to `fn(&mut Parser, Marker) -> CompletedMarker`
is my plan.

Co-authored-by: pcpthm <pcpthm@gmail.com>
5 years agoApply stylistic changes suggested
pcpthm [Mon, 18 Mar 2019 04:03:04 +0000 (13:03 +0900)]
Apply stylistic changes suggested

5 years agoMerge #982
bors[bot] [Sun, 17 Mar 2019 21:41:37 +0000 (21:41 +0000)]
Merge #982

982: Implement BindingMode for pattern matching. r=flodiebold a=mjkillough

Implement `BindingMode` for pattern matching, so that types can be
correctly inferred using match ergonomics. The binding mode defaults to
`Move` (referred to as 'BindingMode::BindByValue` in rustc), and is
updated by automatic dereferencing of the value being matched.

Fixes #888.

 - [Binding modes in The Reference](https://doc.rust-lang.org/reference/patterns.html#binding-modes)
 - [`rustc` implementation](https://github.com/rust-lang/rust/blob/e17c48e2f21eefd59748e364234efc7037a3ec96/src/librustc_typeck/check/_match.rs#L77) (and [definition of `BindingMode`](https://github.com/rust-lang/rust/blob/e957ed9d10ec589bdd523b88b4b44c41b1ecf763/src/librustc/ty/binding.rs))
 - [Match Ergonomics RFC](https://github.com/rust-lang/rfcs/blob/master/text/2005-match-ergonomics.md#binding-mode-rules)

Co-authored-by: Michael Killough <michaeljkillough@gmail.com>
5 years agoSplit test case and use tested_by!.
Michael Killough [Sun, 17 Mar 2019 19:05:10 +0000 (19:05 +0000)]
Split test case and use tested_by!.

5 years agoSimplify match statement.
Michael Killough [Sun, 17 Mar 2019 18:50:22 +0000 (18:50 +0000)]
Simplify match statement.

5 years agoImplement naive version of fill_struct_fields assist
yanchith [Sun, 17 Mar 2019 18:48:25 +0000 (19:48 +0100)]
Implement naive version of fill_struct_fields assist

5 years agoimpl Default for BindingMode.
Michael Killough [Sun, 17 Mar 2019 18:46:01 +0000 (18:46 +0000)]
impl Default for BindingMode.

This decouples callers from knowing what the default binding mode of
pattern matching is.

5 years agoMerge #983
bors[bot] [Sun, 17 Mar 2019 14:34:14 +0000 (14:34 +0000)]
Merge #983

983: support remainder assignment operator r=matklad a=JeanMertz

`%=` was returning errors for me, turns out it wasn't added as a valid assignment operation.

I'm not sure what the best location would be to add a test for this. Please let me know and I'll add one.

Co-authored-by: Jean Mertz <jean@mertz.fm>
5 years agosupport remainder assignment operator
Jean Mertz [Sat, 16 Mar 2019 21:08:50 +0000 (22:08 +0100)]
support remainder assignment operator

5 years agoRefactor maybe_item to use Marker argument
pcpthm [Sun, 17 Mar 2019 13:04:25 +0000 (22:04 +0900)]
Refactor maybe_item to use Marker argument

5 years agoMerge #986
bors[bot] [Sun, 17 Mar 2019 12:14:36 +0000 (12:14 +0000)]
Merge #986

986: Fix parse tree of attribute on match arm r=matklad a=pcpthm

```rust
match () {
    #[attr]
    () => (),
}
```
Incorrect parse tree: `MatchArmList(Attr(..), MatchArm(..))`.
Fixed: `MatchArmList(MatchArm(Attr(..), ...))`.

Co-authored-by: pcpthm <pcpthm@gmail.com>
5 years agoFix parse tree of attribute on match arm
pcpthm [Sun, 17 Mar 2019 11:57:27 +0000 (20:57 +0900)]
Fix parse tree of attribute on match arm

5 years agoMerge #985
bors[bot] [Sun, 17 Mar 2019 10:26:45 +0000 (10:26 +0000)]
Merge #985

985: simplify parsing blocks a bit r=pcpthm a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoMerge #984
bors[bot] [Sun, 17 Mar 2019 10:16:34 +0000 (10:16 +0000)]
Merge #984

984: Allow attribute on struct literal field r=matklad a=pcpthm

Cherrypicked from #980

Co-authored-by: pcpthm <pcpthm@gmail.com>
5 years agosimplify parsing blocks a bit
Aleksey Kladov [Sun, 17 Mar 2019 10:14:17 +0000 (13:14 +0300)]
simplify parsing blocks a bit

5 years agoAllow attribute on struct literal field
pcpthm [Sat, 16 Mar 2019 15:27:07 +0000 (00:27 +0900)]
Allow attribute on struct literal field

5 years agoMerge #968
bors[bot] [Sun, 17 Mar 2019 09:59:04 +0000 (09:59 +0000)]
Merge #968

968: Macro aware name resoltion r=matklad a=matklad

The first commit lays the ground work for new name resolution, including

* extracting position-indendent items from parse trees
* walking the tree of modules
* old-style macro_rules resolve

cc @pnkfelix: this looks like an API name resolution should interact with.

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agodocs
Aleksey Kladov [Sun, 17 Mar 2019 09:43:25 +0000 (12:43 +0300)]
docs

5 years agoremove fixme
Aleksey Kladov [Sun, 17 Mar 2019 09:06:30 +0000 (12:06 +0300)]
remove fixme

5 years agoremove old macro support
Aleksey Kladov [Sat, 16 Mar 2019 16:40:41 +0000 (19:40 +0300)]
remove old macro support

5 years agorename ModuleId -> CrateModuleId
Aleksey Kladov [Sat, 16 Mar 2019 15:57:53 +0000 (18:57 +0300)]
rename ModuleId -> CrateModuleId

5 years agofix error on wrong path
Aleksey Kladov [Sat, 16 Mar 2019 15:06:45 +0000 (18:06 +0300)]
fix error on wrong path

5 years agolog time
Aleksey Kladov [Sat, 16 Mar 2019 14:52:26 +0000 (17:52 +0300)]
log time

5 years agoReorganize name resolution
Aleksey Kladov [Sat, 16 Mar 2019 14:17:50 +0000 (17:17 +0300)]
Reorganize name resolution

5 years agohack around non-terminating macro expansion
Aleksey Kladov [Sat, 16 Mar 2019 12:45:21 +0000 (15:45 +0300)]
hack around non-terminating macro expansion

5 years agoremove lower module
Aleksey Kladov [Thu, 14 Mar 2019 10:14:54 +0000 (13:14 +0300)]
remove lower module

5 years agoremove ItemMap
Aleksey Kladov [Thu, 14 Mar 2019 09:54:03 +0000 (12:54 +0300)]
remove ItemMap

5 years agomove tests over to crate-def-map
Aleksey Kladov [Thu, 14 Mar 2019 08:53:40 +0000 (11:53 +0300)]
move tests over to crate-def-map

5 years agoReplace module_tree with CrateDefMap
Aleksey Kladov [Wed, 13 Mar 2019 13:38:02 +0000 (16:38 +0300)]
Replace module_tree with CrateDefMap

5 years agoadd name resolution from the old impl
Aleksey Kladov [Wed, 13 Mar 2019 13:04:28 +0000 (16:04 +0300)]
add name resolution from the old impl

unlike the old impl, this also handles macro imports across crates

5 years agoadd skeleton for macro-aware name resolutions
Aleksey Kladov [Sat, 2 Mar 2019 20:59:04 +0000 (23:59 +0300)]
add skeleton for macro-aware name resolutions

5 years agoMerge #947
bors[bot] [Sun, 17 Mar 2019 08:51:06 +0000 (08:51 +0000)]
Merge #947

947: Add missing impl members r=matklad a=Xanewok

Closes #878.

This took longer than expected as I wrapped my head around the API and the project - hopefully I didn't miss any edge case here.

r? @matklad

Co-authored-by: Igor Matuszewski <xanewok@gmail.com>
5 years agoMove the primary assist fn to the top of the file
Igor Matuszewski [Sat, 16 Mar 2019 22:24:17 +0000 (23:24 +0100)]
Move the primary assist fn to the top of the file

5 years agoProvide assist when cursor is immediately outside impl item block
Igor Matuszewski [Sat, 16 Mar 2019 22:19:14 +0000 (23:19 +0100)]
Provide assist when cursor is immediately outside impl item block

5 years agoDo a cleanup/legibility pass
Igor Matuszewski [Thu, 7 Mar 2019 15:20:37 +0000 (16:20 +0100)]
Do a cleanup/legibility pass

5 years agoTake into account parent indent when filling trait members
Igor Matuszewski [Thu, 7 Mar 2019 15:10:21 +0000 (16:10 +0100)]
Take into account parent indent when filling trait members

5 years agoSimplify trait resolution fragment
Igor Matuszewski [Thu, 7 Mar 2019 15:10:03 +0000 (16:10 +0100)]
Simplify trait resolution fragment

5 years agoIgnore unnamed trait fns and add more tests
Igor Matuszewski [Thu, 7 Mar 2019 12:44:01 +0000 (13:44 +0100)]
Ignore unnamed trait fns and add more tests

5 years agoSimplify calculation of missing functions
Igor Matuszewski [Thu, 7 Mar 2019 12:36:35 +0000 (13:36 +0100)]
Simplify calculation of missing functions

Asymptotically computing a set difference is faster but in the average
case we won't have more than ~10 functions. Also prefer not using hash
sets as these may yield nondeterministic results.

5 years agoProperly support the case when the cursor is inside an empty block or outside
Igor Matuszewski [Thu, 7 Mar 2019 12:21:56 +0000 (13:21 +0100)]
Properly support the case when the cursor is inside an empty block or outside

5 years agoRedo indent calculation when adding missing impl members
Igor Matuszewski [Thu, 7 Mar 2019 11:02:53 +0000 (12:02 +0100)]
Redo indent calculation when adding missing impl members

5 years agoImplement a simple working assist
Igor Matuszewski [Thu, 7 Mar 2019 00:48:31 +0000 (01:48 +0100)]
Implement a simple working assist

5 years agoCalculate missing functions from impl body
Igor Matuszewski [Wed, 6 Mar 2019 22:45:11 +0000 (23:45 +0100)]
Calculate missing functions from impl body

5 years agoAdd 'add_missing_impl_members' assist stub
Igor Matuszewski [Wed, 6 Mar 2019 13:41:22 +0000 (14:41 +0100)]
Add 'add_missing_impl_members' assist stub

5 years agoImplement BindingMode for pattern matching.
Michael Killough [Sat, 16 Mar 2019 18:13:13 +0000 (18:13 +0000)]
Implement BindingMode for pattern matching.

Implement `BindingMode` for pattern matching, so that types can be
correctly inferred using match ergonomics. The binding mode defaults to
`Move` (referred to as 'BindingMode::BindByValue` in rustc), and is
updated by automatic dereferencing of the value being matched.

5 years agoMerge #981
bors[bot] [Sat, 16 Mar 2019 17:24:55 +0000 (17:24 +0000)]
Merge #981

981: Remove FnSig from FnDef type r=matklad a=flodiebold

It doesn't need to be in there since it's just information from the def. Another
step towards aligning Ty with Chalk's representation.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
5 years agoRemove FnSig from FnDef type
Florian Diebold [Sat, 16 Mar 2019 16:29:55 +0000 (17:29 +0100)]
Remove FnSig from FnDef type

It doesn't need to be in there since it's just information from the def. Another
step towards aligning Ty with Chalk's representation.

5 years agoRefactor FnSig a bit
Florian Diebold [Sat, 16 Mar 2019 16:21:32 +0000 (17:21 +0100)]
Refactor FnSig a bit

5 years agoSome more Ty displaying cleanup
Florian Diebold [Sat, 16 Mar 2019 15:50:31 +0000 (16:50 +0100)]
Some more Ty displaying cleanup

5 years agoMerge #976
bors[bot] [Sat, 16 Mar 2019 15:42:36 +0000 (15:42 +0000)]
Merge #976

976: Replace Display by a pretty printing trait for Ty r=matklad a=flodiebold

This allows removing the names from Adt and FnDef (and more later), as a first
step towards aligning more with chalk's Ty :)

I may have gone a bit overboard with the definition of the PrettyPrint trait...

Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
5 years agoReplace Display by a pretty printing trait for Ty
Florian Diebold [Thu, 14 Mar 2019 21:03:39 +0000 (22:03 +0100)]
Replace Display by a pretty printing trait for Ty

This allows removing the names from Adt and FnDef (and more later), as a first
step towards aligning more with chalk's Ty :)

5 years agoMerge #978
bors[bot] [Fri, 15 Mar 2019 21:15:43 +0000 (21:15 +0000)]
Merge #978

978: Update some dependencies r=matklad a=kjeremy

Co-authored-by: kjeremy <kjeremy@gmail.com>
5 years agoUpdate some dependencies
kjeremy [Fri, 15 Mar 2019 15:36:25 +0000 (11:36 -0400)]
Update some dependencies

5 years agoMerge #977
bors[bot] [Fri, 15 Mar 2019 05:03:50 +0000 (05:03 +0000)]
Merge #977

977: Fix ra-emacs-lsp for newest lsp-mode with native json support r=matklad a=flodiebold

Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
5 years agoFix ra-emacs-lsp for newest lsp-mode with native json support
Florian Diebold [Thu, 14 Mar 2019 21:08:37 +0000 (22:08 +0100)]
Fix ra-emacs-lsp for newest lsp-mode with native json support

5 years agoMerge #975
bors[bot] [Thu, 14 Mar 2019 10:29:29 +0000 (10:29 +0000)]
Merge #975

975: sort navigations to make tests stable r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agosort navigations to make tests stable
Aleksey Kladov [Thu, 14 Mar 2019 10:27:21 +0000 (13:27 +0300)]
sort navigations to make tests stable

5 years agoMerge #974
bors[bot] [Thu, 14 Mar 2019 09:17:21 +0000 (09:17 +0000)]
Merge #974

974: Add MINUS token the PATTERN_FIRST token set r=matklad a=mchesser

Fixes: #972
Co-authored-by: Michael Chesser <michaelchesser@outlook.com>
5 years agoAdd test for minus in inner pattern
Michael Chesser [Thu, 14 Mar 2019 08:52:37 +0000 (19:22 +1030)]
Add test for minus in inner pattern

5 years agoAllow MINUS at the start of a pattern.
Michael Chesser [Wed, 13 Mar 2019 23:38:49 +0000 (10:08 +1030)]
Allow MINUS at the start of a pattern.

5 years agoMerge #973
bors[bot] [Thu, 14 Mar 2019 08:32:13 +0000 (08:32 +0000)]
Merge #973

973: derive Hash for ra_hir::ModuleDef r=matklad a=pcpthm

I wanted to use `HashSet` but it seems like `Hash` derive is missing for no reason.

Co-authored-by: pcpthm <pcpthm@gmail.com>
5 years agoderive Hash for ra_hir::ModuleDef
pcpthm [Thu, 14 Mar 2019 08:25:51 +0000 (17:25 +0900)]
derive Hash for ra_hir::ModuleDef

5 years agoMerge #971
bors[bot] [Thu, 14 Mar 2019 07:04:56 +0000 (07:04 +0000)]
Merge #971

971: Point to compiler-team repo in the readme r=matklad a=detrumi

The readme still links to the old repo, which redirects to the new one

Co-authored-by: Wilco Kusee <wilcokusee@gmail.com>
5 years agoPoint to the compiler-team repo directly
Wilco Kusee [Wed, 13 Mar 2019 18:36:26 +0000 (19:36 +0100)]
Point to the compiler-team repo directly

5 years agoMerge #970
bors[bot] [Wed, 13 Mar 2019 14:50:38 +0000 (14:50 +0000)]
Merge #970

970: Fix typo r=matklad a=skade

Co-authored-by: Florian Gilcher <florian.gilcher@asquera.de>
5 years agoFix typo
Florian Gilcher [Wed, 13 Mar 2019 14:23:22 +0000 (15:23 +0100)]
Fix typo

5 years agoMerge #969
bors[bot] [Wed, 13 Mar 2019 13:39:24 +0000 (13:39 +0000)]
Merge #969

969: activate extension if Cargo.toml is present r=matklad a=matklad

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
5 years agoactivate extension if Cargo.toml is present
Aleksey Kladov [Wed, 13 Mar 2019 13:14:30 +0000 (16:14 +0300)]
activate extension if Cargo.toml is present

5 years agoMerge #959
bors[bot] [Tue, 12 Mar 2019 10:23:47 +0000 (10:23 +0000)]
Merge #959

959: Retrieve current working directory from workspace r=matklad a=LDSpits

This PR improves the way the language client retrieves the current working directory by using the VSCode workspace API to get the path to the currently open directory.

If we find more than one directory we show a warning that "multi root workspaces are not supported yet" and pick the root path.

Any feedback is appreciated ðŸ˜„

fixes #945

Co-authored-by: Lucas Spits <spits.lucas@gmail.com>