Commit Graph

6992 Commits

Author SHA1 Message Date
Aleksey Kladov
8670812209
Merge pull request #2766 from gilescope/windows-build
Upload PR
2020-01-11 21:37:09 +01:00
Emil Lauridsen
8e778f9842 Clean up straggling mut 2020-01-11 21:37:01 +01:00
Emil Lauridsen
480c44918c Disable cargo checking in workspaces with no cargo projects 2020-01-11 21:32:40 +01:00
bors[bot]
7c1af25b22
Merge #2795
2795: Use dummy value for macro file in bulitin macros r=matklad a=edwin0cheng

This PR skip the actual line and column computation for `MacroFile` and return a dummy value instead.

Related to #2794



Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-01-11 20:13:48 +00:00
bors[bot]
7326608536
Merge #2796
2796: Fix lruCapacity config key in VSCode r=kjeremy a=marcogroppo

Closes #2789.

This simply adds `null` as a valid value for the configuration key. 

We could use the server-side default value (128) instead, but in that case every time we change its value on the server side we would have to update it on the client side too.

Co-authored-by: Marco Groppo <marco.groppo@gmail.com>
2020-01-11 16:56:11 +00:00
Marco Groppo
08fa0151ed Fix lruCapacity config setting type 2020-01-11 13:30:02 +01:00
Edwin Cheng
9f65ae20c2 Use dummy value for macro file in bulitin macros 2020-01-11 16:37:42 +08:00
bors[bot]
991b62a4f9
Merge #2790
2790: Add test for macro expansion in various expressions r=edwin0cheng a=flodiebold

cc @edwin0cheng 

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2020-01-11 03:51:04 +00:00
Emil Lauridsen
d6da18e99d Address nit 2020-01-10 22:41:52 +01:00
bors[bot]
a9ba32e2e6
Merge #2749
2749: Basic DocumentHighlightKind support for assignments r=matklad a=kjeremy

Wraps references per #2738 and adds limited support for DocumentHighlightKind Read/Write for simple binops assignments.

I think I need some help with determining reads/writes.

Towards #2560 

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
Co-authored-by: kjeremy <kjeremy@gmail.com>
2020-01-10 21:40:57 +00:00
Emil Lauridsen
1d1eea217d Slightly more robust cargo watcher root search 2020-01-10 22:10:26 +01:00
Florian Diebold
dd6ec81d65 Add test for macro expansion in various expressions 2020-01-10 22:08:02 +01:00
kjeremy
a633a6275a Fix Write being sent down the wire.
Not sure what the deal is here but it wasn't sending Write.
2020-01-10 15:30:17 -05:00
kjeremy
32540abcb3 Add AccessMode to decls 2020-01-10 15:14:19 -05:00
kjeremy
49fd6a5228 Split Declaration out into it's own type 2020-01-10 15:14:19 -05:00
kjeremy
cc96ddfe69 Simplify and update tests to account for access 2020-01-10 15:14:19 -05:00
Jeremy Kolb
6c89d86ade Tweaks 2020-01-10 15:14:19 -05:00
Jeremy Kolb
d993f329a0 Basic DocumentHighlightKind support for assignments 2020-01-10 15:14:19 -05:00
bors[bot]
19eb7fa1db
Merge #2787
2787: Add missing expr cases for expand macro r=flodiebold a=edwin0cheng

I will open another issues for tracking adding back the cases implemented in the PR. 

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-01-10 19:59:08 +00:00
Edwin Cheng
dca9195f75 Add missing expr cases for expand macro 2020-01-11 03:11:23 +08:00
bors[bot]
029c02982b
Merge #2786
2786: Proper handling local in hover r=flodiebold a=edwin0cheng

This PR implement back the `Local` hover information generation, which is fall back to a general case catch previously :

9a44f627be/crates/ra_ide/src/hover.rs (L173-L182)



Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-01-10 17:58:14 +00:00
Edwin Cheng
19094abd41 Proper handling local in hover 2020-01-11 01:51:08 +08:00
bors[bot]
9a44f627be
Merge #2785
2785: Expand PAREN_EXPR as expression r=matklad a=edwin0cheng



Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-01-10 16:31:02 +00:00
Edwin Cheng
ca62d98781 Expand PAREN_EXPR as expression 2020-01-11 00:29:00 +08:00
bors[bot]
2068e48c69
Merge #2784
2784: Add freiheit.com to list of sponsors r=matklad a=flodiebold



Co-authored-by: Florian Diebold <florian.diebold@freiheit.com>
2020-01-10 14:12:57 +00:00
Florian Diebold
c4ce7fe08b Add freiheit.com to list of sponsors 2020-01-10 15:07:27 +01:00
bors[bot]
046e46672b
Merge #2782
2782: Use correct rustfmt for codegen r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-01-10 10:24:29 +00:00
Aleksey Kladov
fd394ff424 Use correct rustfmt for codegen
closes #1569
2020-01-10 11:23:43 +01:00
Giles Cope
2187732fb5 We only want this triggering for master. 2020-01-09 22:13:50 +00:00
Giles Cope
42942fc662 Reducing binary size and optimising a bit more. 2020-01-09 22:11:25 +00:00
Giles Cope
f1920d7b54 Still double compiling. Try this. 2020-01-09 21:11:52 +00:00
Giles Cope
477668fc22 Was doing the compile twice. 2020-01-09 20:38:26 +00:00
Giles Cope
973aa054ee Split out into a release build as bins were not getting generated as cargo build wasn't run 2020-01-09 20:21:07 +00:00
Giles Cope
45b0e7ad7d second attempt 2020-01-09 19:45:26 +00:00
Giles Cope
3422bf1d29 parameterised debug 2020-01-09 19:36:12 +00:00
Giles Cope
f562a1fc9f Packaging server bins 2020-01-09 19:21:08 +00:00
bors[bot]
b77a7e29a5
Merge #2779
2779: Parse trait aliases r=matklad a=kiljacken

Implements the needed changes to correctly parse trait aliases.

This is my first change in the parser code, so would appreciate a comment on whether this is the right way to go about it.

Co-authored-by: Emil Lauridsen <mine809@gmail.com>
2020-01-09 17:44:31 +00:00
Emil Lauridsen
aa433c67d8 Parse trait aliases 2020-01-09 18:40:01 +01:00
bors[bot]
c2bbfb9a5f
Merge #2778
2778: ⬆️ rowan r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-01-09 15:33:37 +00:00
Aleksey Kladov
47785b0cd4 ⬆️ rowan 2020-01-09 16:33:02 +01:00
Aleksey Kladov
cf5bdf464c
Merge pull request #2732 from detrumi/cargo-toml-not-found-message-toggle
Flag to hide cargo.toml not found error
2020-01-09 15:16:39 +01:00
Giles Cope
6fecdd3ccf create dir if not there as cp doesn't seem to have an option to create the dest dir automatically. 2020-01-09 13:35:54 +00:00
Giles Cope
5d43ce12c3 put as debug for now while I get it working. 2020-01-09 13:24:20 +00:00
Giles Cope
cbd0baf20b Getting to grips with github format... 2020-01-09 13:18:16 +00:00
bors[bot]
3263c70766
Merge #2772
2772: Actually test references r=kjeremy a=kjeremy

This will be a little more work when `ReferenceSearchResults` change but I think it's easier to maintain in the end. It also follows a similar pattern to navigation targets and call hierarchy.

Co-authored-by: kjeremy <kjeremy@gmail.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
2020-01-09 12:26:59 +00:00
Jeremy Kolb
6fc80efe77 visibility tweak 2020-01-09 07:26:04 -05:00
bors[bot]
0d6e5a986c
Merge #2771
2771: Remove the Default impl for SourceRoot r=matklad a=michalt

Let's be always explicit whether we create a library (i.e., an immutable
dependency) or a local `SourceRoot`, since it can have a large impact on
the validation performance in salsa. (we found it the hard way recently,
where the `Default` instance made it quite tricky to spot a bug)

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>

Co-authored-by: Michal Terepeta <michal.terepeta@gmail.com>
2020-01-09 10:35:17 +00:00
bors[bot]
5ced6f4be3
Merge #2777
2777: Better error message r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-01-09 10:26:22 +00:00
Aleksey Kladov
4223760a7b Better error message
closes #2775
2020-01-09 11:25:44 +01:00
Giles Cope
dd5e1b652f Less output for typescript artifacts 2020-01-09 08:56:42 +00:00