Florian Diebold
c39352fa43
Fill in type params in 'add missing impl members' assist
2019-12-24 17:29:27 +01:00
Seivan Heidari
b21d9337d9
Merge branch 'master' into feature/themes
2019-12-23 15:35:31 +01:00
Francisco Lopes
f909d2b56c
Cleanup Vim and NeoVim instructions. Fix #2579
2019-12-17 20:57:32 -03:00
Laurențiu Nicola
78e8934976
Code: check whether the LSP binary is in PATH
2019-12-08 15:04:37 +02:00
Andrew Banchich
956ce1d10a
fix file name
2019-12-04 11:07:37 -05:00
Andrew Banchich
62cadecc89
fix link
2019-12-04 11:02:03 -05:00
Andrew Banchich
00d5fb44ab
use relative link
2019-12-04 11:00:51 -05:00
Andrew Banchich
a863298314
fix outdated link to ra-emacs-lsp.el
2019-12-04 10:48:03 -05:00
bors[bot]
3376c08052
Merge #2018
...
2018: assists: add assist for custom implementation for derived trait r=matklad a=paulolieuthier
Please, tell me if something could be more idiomatic or efficient.
Fixes #1256 .
Co-authored-by: Paulo Lieuthier <paulolieuthier@gmail.com>
2019-12-02 15:52:11 +00:00
Jonathan Behrens
75be6553fe
Add back corrected cargo install
command
2019-12-01 13:29:49 -05:00
Jonathan Behrens
c69ed9bd1f
Clarify installation instructions
...
In particular it is necessary to clone the repository before running the other commands. I also removed the `cargo install` side note because it didn't actually work (running the command just produces an error that --package isn't a recognized flag) and added a tldr code block with the list of commands to run.
2019-11-30 21:20:54 -05:00
Alexander Ekdahl
1793abf4fd
Update README
2019-11-29 19:36:48 -05:00
Paulo Lieuthier
5b2d52c8df
docs: describe new feature 'add custom impl for derived trait'
2019-11-28 17:36:40 -03:00
Seivan Heidari
18a0937585
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
2019-11-28 08:19:14 +01:00
Aleksey Kladov
757e593b25
rename ra_ide_api -> ra_ide
2019-11-27 21:35:06 +03:00
Seivan Heidari
15ea338ac9
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
2019-11-25 01:54:54 +01:00
bors[bot]
7b6aa7c34e
Merge #2343
...
2343: implement assist invert_if r=matklad a=bravomikekilo
fix [issue 2219 invert if condition](https://github.com/rust-analyzer/rust-analyzer/issues/2219 )
I put the assist cursor range to `if` of the if expression, because both condition and body will be replaced. Is there any way to replace them without cover the cursor position?
@matklad
Co-authored-by: bravomikekilo <bmk1221@126.com>
2019-11-24 08:32:07 +00:00
bravomikekilo
adac4fc2f2
do refact and fix some issue
2019-11-24 13:14:57 +08:00
Ashkan Kiani
ebdde64287
Fix url to point to rust_analyzer specifically
2019-11-23 02:00:38 -08:00
Ashkan Kiani
8d02df93d7
Add note about neovim's built in language server
2019-11-23 01:58:13 -08:00
bravomikekilo
8a8be06219
initial invert_if
2019-11-22 02:51:40 +08:00
Seivan Heidari
358a1bcd70
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
2019-11-21 01:11:41 +01:00
Florian Diebold
c079d9b63b
Add rust-analyzer-expand-macro function for Emacs
2019-11-20 20:45:25 +01:00
Seivan Heidari
1e2d090ab8
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
2019-11-20 03:56:43 +01:00
Edwin Cheng
47a4c3e77d
Add document in features.md
2019-11-20 01:09:15 +08:00
Seivan Heidari
4bdb6351ac
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
2019-11-18 20:53:40 +01:00
Aleksey Kladov
76da22e66a
Don't create a separate bin for format hook
2019-11-18 15:27:04 +03:00
Seivan Heidari
cb26df9506
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
2019-11-15 16:30:21 +01:00
bors[bot]
3ad11973ac
Merge #2165
...
2165: ra_assists: Add add_new assist r=matklad a=rep-nop
Adds a new assist to autogenerate a new fn based on the selected struct, excluding tuple structs and unions. The fn will inherit the same visibility as the struct and the assist will attempt to reuse any existing impl blocks that exist at the same level of struct.
Not marking this as closing #1644 since there's a part 2 of adding autocompletion for when someone starts typing `[pub ]fn new(...`
Co-authored-by: Wesley Norris <repnop@outlook.com>
2019-11-15 07:01:19 +00:00
Seivan Heidari
11755f3eff
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
2019-11-12 09:46:35 +01:00
Greg
eb72156094
Implement postfix completions feature flag
2019-11-11 22:55:10 -05:00
Wesley Norris
cbc6f94573
Add add_new assist
...
Adds a new assist to autogenerate a new fn based on the selected struct,
excluding tuple structs and unions. The fn will inherit the same
visibility as the struct and the assist will attempt to reuse any
existing impl blocks that exist at the same level of struct.
2019-11-09 10:56:36 -05:00
Seivan Heidari
ec82ca8391
Clearer docs usage under rust-analyzer.scopeMappings
.
2019-11-05 00:18:16 +01:00
Seivan Heidari
c60f9bf4c6
* Adding scope mapping configuration manifest in package.json
...
* Loading configurable scope mappings from settings.
* Updating Readme with `rust-analyzer.scopeMappings`.
`rust-analyzer.scopeMappings` -- a scheme backed JSON object to tweak Rust Analyzer scopes to TextMate scopes.
```jsonc
{
//Will autocomplete keys to available RA scopes.
"keyword.unsafe": ["keyword", "keyword.control"],
//Values are string | TextMateScope | [string | TextMateScope]
"comments": "comment.block"
}
```
2019-11-04 23:59:11 +01:00
Aleksey Kladov
b6fcacd96d
move all assists to use generated docs
2019-10-27 17:49:39 +03:00
Aleksey Kladov
85c64ec7be
use new api for flip_trait_bound assist
2019-10-27 17:02:43 +03:00
Aleksey Kladov
da5528824a
document almost all assists
2019-10-27 12:23:22 +03:00
Aleksey Kladov
a490ba06fa
document some more assists
2019-10-27 11:26:46 +03:00
Aleksey Kladov
cf4720ffd5
use unicode bar for drawing the cursor
2019-10-26 21:22:40 +03:00
Aleksey Kladov
4a83aae098
support range selection in assist docs
2019-10-26 20:57:23 +03:00
Aleksey Kladov
a5cbd8d5e8
check style for assist docs
2019-10-26 19:08:13 +03:00
Aleksey Kladov
4ef9b8d17a
use correct spacing for enum pattern
2019-10-26 18:03:55 +03:00
Aleksey Kladov
3126152a84
document a couple of assists
2019-10-26 17:37:55 +03:00
Aleksey Kladov
d385438bcc
generate more assists docs
2019-10-25 23:38:15 +03:00
Jacob
813b725957
sublime: hint where feature flags would go
2019-10-25 11:32:31 -07:00
Aleksey Kladov
0dd35ff2b2
auto-generate assists docs and tests
2019-10-25 14:47:48 +03:00
Aleksey Kladov
dc65219ae1
document feature flags
2019-10-25 09:00:30 +03:00
memoryruins
f28801b094
Update rustdoc link pt.2
2019-10-24 17:01:42 -04:00
Aleksey Kladov
a669049ef3
xtask: fold gen-tests and gen-ast into codegen
2019-10-23 18:57:18 +03:00
Marco Groppo
46656222ed
Instructions for VSCode Remote
2019-10-21 21:19:26 +02:00