Laurențiu Nicola
5ff576f503
Add support for downloading aarch64-apple-darwin binaries, change naming convention
2020-12-22 16:48:49 +02:00
Jonas Schievink
26f604b907
Store invocation site for eager macros
2020-12-22 15:02:03 +01:00
Rüdiger Herrmann
9f070531a6
Clean up descriptions for settings
...
Use two consecutive newlines (`\n\n`) to actually continue text on a
new line.
Use proper markup to reference related settings.
Consistently format references to files, editor commands, command line
arguments, files, etc. as `code`.
Fix typos, add missing full-stops, add missing default values.
2020-12-22 14:51:17 +01:00
bors[bot]
e1acb0ca5c
Merge #6999
...
6999: Build aarch64-apple-darwin binaries on CI (take 2) r=matklad a=lnicola
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-22 13:19:27 +00:00
Laurențiu Nicola
c06efa380d
Build aarch64-apple-darwin binaries on CI
2020-12-22 15:13:34 +02:00
bors[bot]
1f22eca3d4
Merge #6989
...
6989: Build aarch64-apple-darwin binaries on CI r=matklad a=lnicola
This splits the `dist` matrix job into four and tries to make `xtask dist` more principled about target and artifact naming.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-22 13:12:22 +00:00
Laurențiu Nicola
e881815115
Build aarch64-apple-darwin binaries on CI
2020-12-22 13:18:00 +02:00
bors[bot]
b98ee075ee
Merge #6746
...
6746: Feature/add assist extract module to file r=matklad a=sasurau4
Fix #6522
## Screenshot
<img src="https://user-images.githubusercontent.com/13580199/102748269-33a44300-43a5-11eb-9e37-f5fcb8e62f73.gif " width=600 />
## TODO
- [x] Remove all TODO comment
- [x] Pass the doc test
Co-authored-by: Daiki Ihara <sasurau4@gmail.com >
2020-12-22 10:04:24 +00:00
bors[bot]
61711d9757
Merge #6984
...
6984: Remove TextMate grammar r=dustypomerleau a=lnicola
Closes #6267
This is now included upstream in VS Code.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-22 04:02:28 +00:00
bors[bot]
ba71685343
Merge #6991
...
6991: Don't download x64 binaries on non-Mac arm64 r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-21 19:40:38 +00:00
Laurențiu Nicola
211551646f
Don't download x64 binaries on non-Mac arm64
2020-12-21 21:40:01 +02:00
bors[bot]
4c8a641f72
Merge #6990
...
6990: Allow code extension to download binary in apple arm r=lnicola a=phungleson
Apple chip has a new `arch`. It subsequently downloads Intel version of `rust-analyzer` but it works regardless.
Co-authored-by: Son <leson.phung@gmail.com >
2020-12-21 19:28:37 +00:00
Son
6089c6b1ea
Allow code extension to download binary in apple arm
2020-12-22 06:23:50 +11:00
bors[bot]
e86344745e
Merge #6988
...
6988: Remove outdated FIXME r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-21 18:37:37 +00:00
Laurențiu Nicola
1da99a79d9
Remove outdated FIXME
2020-12-21 20:36:58 +02:00
bors[bot]
e4f922a74d
Merge #6985
...
6985: Use /etc/os-release to check for NixOS r=matklad a=lnicola
Closes #5641
The motivation in #5641 isn't too strong, but /etc/os-release exists on pretty much every Linux distro, while /etc/nixos sounds like an implementation detail.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-21 18:21:49 +00:00
bors[bot]
87762874ef
Merge #6987
...
6987: Delete related whitespace when removing unused param r=matklad a=rherrmann
Include adjacent whitespace in the text edits to remove the
parameter declaration and its occurences in calling code.
https://github.com/rust-analyzer/rust-analyzer/issues/6663
Co-authored-by: Rüdiger Herrmann <ruediger.herrmann@gmx.de >
2020-12-21 18:15:17 +00:00
Rüdiger Herrmann
658ba9e29c
Delete related whitespace when removing unused param
...
Include adjacent whitespace in the text edits to remove the
parameter declaration and its occurences in calling code.
https://github.com/rust-analyzer/rust-analyzer/issues/6663
2020-12-21 18:42:42 +01:00
Laurențiu Nicola
ee73466830
Use /etc/os-release to check for NixOS
...
The motivation in #5641 isn't too strong, but /etc/os-release exists on
pretty much every Linux distro, while /etc/nixos sounds like an
implementation detail.
2020-12-21 19:21:43 +02:00
Laurențiu Nicola
133a32d446
Remove TextMate grammar
...
It's now included upstream in VS Code
2020-12-21 18:58:46 +02:00
bors[bot]
c8a73fe655
Merge #6982
...
6982: Remove parentheses when inverting `!(cond)` r=matklad a=Jesse-Bakker
Followup to #6894
When inverting a composite condition twice, the parentheses were left. This also removes those unnecessary parentheses when applying the invert-if assist.
Co-authored-by: Jesse Bakker <github@jessebakker.com >
2020-12-21 16:57:49 +00:00
Jesse Bakker
2e7abf8384
Remove parentheses when inverting !(cond)
2020-12-21 17:37:38 +01:00
bors[bot]
71c8073aa1
Merge #6981
...
6981: Acquire original text range when searching for references r=Veykril a=Veykril
Fixes #6976
Co-authored-by: Lukas Wirth <lukastw97@gmail.com >
2020-12-21 16:29:59 +00:00
Lukas Wirth
a4f34e2c8c
Acquire original text range when searching for references
2020-12-21 17:28:47 +01:00
bors[bot]
04525253a0
Merge #6978
...
6978: Filter out empty rustc spans r=lnicola a=jonas-schievink
Hopefully, this fixes https://github.com/rust-analyzer/rust-analyzer/issues/6892 (I couldn't test it since r-a currently requires a too recent version of VS Code)
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com >
2020-12-21 15:16:16 +00:00
Jonas Schievink
ee8d7a7123
Filter out empty rustc spans
2020-12-21 15:38:27 +01:00
Lukas Wirth
2cd2947bf8
Insert snippet positions after fields names in record patterns
2020-12-21 15:10:27 +01:00
bors[bot]
ab343e47c6
Merge #6977
...
6977: Revert "Stop setting CompletionItem::deprecated" r=lnicola a=lnicola
We should keep setting it, according to https://github.com/rust-analyzer/rust-analyzer/pull/6974#issuecomment-748983789 .
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-21 14:00:34 +00:00
Laurențiu Nicola
328e0e2de7
Revert "Stop setting CompletionItem::deprecated"
...
This reverts commit 299ce60995 .
2020-12-21 15:58:26 +02:00
bors[bot]
7843ae6ddb
Merge #6974
...
6974: Stop setting CompletionItem::deprecated r=matklad a=lnicola
Closes #2042
We're now using the `CompletionItem::tags` field to mark `CompletionItem`s as deprecated, and `CompletionItem::deprecated` is gone from LSP.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-21 12:10:01 +00:00
Laurențiu Nicola
299ce60995
Stop setting CompletionItem::deprecated
2020-12-21 13:18:25 +02:00
bors[bot]
9bb9fbab3a
Merge #6965
...
6965: Properly attach attributes to Param instead of parent ParamList r=matklad a=Veykril
Fixes #2783 , fixes #2781
The problem with `let _a = [0,#[cfg(feature = "L")]0];` has already been fixed some time ago it seems:
<details>
<summary>Syntax Tree for the const item</summary>
```
LET_STMT@200..236
LET_KW@200..203 "let"
WHITESPACE@203..204 " "
IDENT_PAT@204..206
NAME@204..206
IDENT@204..206 "_a"
WHITESPACE@206..207 " "
EQ@207..208 "="
WHITESPACE@208..209 " "
ARRAY_EXPR@209..235
L_BRACK@209..210 "["
LITERAL@210..211
INT_NUMBER@210..211 "0"
COMMA@211..212 ","
LITERAL@212..234
ATTR@212..233
POUND@212..213 "#"
L_BRACK@213..214 "["
PATH@214..217
PATH_SEGMENT@214..217
NAME_REF@214..217
IDENT@214..217 "cfg"
TOKEN_TREE@217..232
L_PAREN@217..218 "("
IDENT@218..225 "feature"
WHITESPACE@225..226 " "
EQ@226..227 "="
WHITESPACE@227..228 " "
STRING@228..231 "\"L\""
R_PAREN@231..232 ")"
R_BRACK@232..233 "]"
INT_NUMBER@233..234 "0"
R_BRACK@234..235 "]"
SEMICOLON@235..236 ";"
```
</details>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com >
2020-12-21 08:54:31 +00:00
bors[bot]
fa75e11eb6
Merge #6967
...
6967: Correctly parse legacy trait objects with leading ForType r=matklad a=Veykril
Fixes #1422
Co-authored-by: Lukas Wirth <lukastw97@gmail.com >
2020-12-21 08:46:42 +00:00
Daiki Ihara
23ed33a3a6
Use workspace applyEdit instead of snippetWorkspaceEdit
2020-12-21 15:55:40 +09:00
Daiki Ihara
66fd262962
Fix assist test logic
2020-12-21 15:55:40 +09:00
Daiki Ihara
2b4a7848a8
Update test diagnostics in ide
2020-12-21 15:55:40 +09:00
Daiki Ihara
7a2eebde22
Add initial_contents field for CreateFile
2020-12-21 15:55:40 +09:00
Daiki Ihara
414576fb30
Add extract_module_to_file assist
2020-12-21 15:55:40 +09:00
Daiki Ihara
c8f5792a36
Add handling file_system_edit in test assists
2020-12-21 15:52:02 +09:00
bors[bot]
c3d21ea05a
Merge #6968
...
6968: Update syn and quote r=kjeremy a=kjeremy
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com >
2020-12-20 22:31:18 +00:00
Jeremy Kolb
f4df2d164d
Update syn and quote
2020-12-20 17:26:44 -05:00
Lukas Wirth
3ea4d43850
Properly parse legacy trait objects with leading ForType
2020-12-20 21:53:55 +01:00
Lukas Wirth
64caa027b8
Parse attributes in tuple expressions
2020-12-20 21:01:36 +01:00
Lukas Wirth
4be9ed675e
Properly attach attributes to Param instead of parent ParamList
2020-12-20 20:30:18 +01:00
Lukas Wirth
33ecad4407
Create non-exhaustive patterns for non_exhaustive attributed items
2020-12-20 20:13:06 +01:00
Lukas Wirth
a5874a38cb
Reduce code duplication in pattern completion
2020-12-20 19:20:55 +01:00
Lukas Wirth
2f6a24950a
Emit snippets for struct pattern completion if enabled
2020-12-20 19:16:28 +01:00
bors[bot]
99f23e2f87
Merge #6963
...
6963: Split lines between sentences r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro >
2020-12-20 17:32:19 +00:00
Laurențiu Nicola
6fbe22bfbb
Split lines between sentences
2020-12-20 19:31:08 +02:00
Lukas Wirth
b184bfad7a
Add completions for patterns
2020-12-20 18:19:23 +01:00