Aleksey Kladov
ae71a631fd
Rename ra_hir -> hir
2020-08-13 16:36:55 +02:00
Aleksey Kladov
ed20a857f4
Rename ra_db -> base_db
2020-08-13 16:29:33 +02:00
Aleksey Kladov
a1c187eef3
Rename ra_syntax -> syntax
2020-08-12 18:30:53 +02:00
Aleksey Kladov
50a02eb359
Rename ra_parser -> parser
2020-08-12 17:14:23 +02:00
Tim Weis
a8beb79a16
Update README.md
...
Fixed formatting.
2020-08-11 01:01:25 +02:00
Laurențiu Nicola
ff60fdc315
Fix typos in syntax.md
2020-08-10 21:31:38 +03:00
Aleksey Kladov
33447e2855
Update docs/dev/README.md
...
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2020-08-05 14:01:51 +02:00
Aleksey Kladov
36d75f3105
Document release process
2020-08-05 13:50:47 +02:00
Aleksey Kladov
e96bfd812a
Tweak style wording
2020-08-02 14:59:18 +02:00
Aleksey Kladov
edee52fa57
reorg docs
2020-08-02 14:37:50 +02:00
Aleksey Kladov
389ad925ff
Document crates.io deps policy
2020-07-31 17:17:32 +02:00
Aleksey Kladov
1142112c70
Rename FnDef -> Fn
2020-07-30 15:16:05 +02:00
David Lattimore
7d80a49e89
README: Add some instructions for running typescript tests and linter.
2020-07-25 09:35:33 +10:00
Aleksey Kladov
280096688b
minor
2020-07-24 22:18:26 +02:00
David Lattimore
3975952601
SSR: Pass current file position through to SSR code.
...
In a subsequent commit, it will be used for resolving paths.
2020-07-24 21:34:00 +10:00
bors[bot]
7bada8a76d
Merge #5473
...
5473: Changes to rust-project.json r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-07-23 13:58:45 +00:00
bors[bot]
e72c6220cd
Merge #5488
...
5488: Update manual.adoc r=matklad a=Veetaha
Co-authored-by: Veetaha <veetaha2@gmail.com>
2020-07-22 15:04:11 +00:00
Jeremy Kolb
9c0ead30b9
Clarify initializationOptions
2020-07-22 10:05:36 -04:00
Veetaha
6faf47c8fe
Update manual.adoc
2020-07-22 16:46:19 +03:00
Aleksey Kladov
deed44a472
Remove support for jemalloc
...
We only used it for measuring memory usage, but now we can use glibc's
allocator for that just fine
2020-07-22 13:40:45 +02:00
Aleksey Kladov
eb613c74da
Apply suggestions from code review
...
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2020-07-21 17:09:56 +02:00
Aleksey Kladov
ca2a4ccf05
Document new rust-project.json format
2020-07-21 15:43:56 +02:00
Laurențiu Nicola
daab8b2fd0
Remove insta dep
2020-07-21 13:11:51 +03:00
bors[bot]
4759a39f06
Merge #5407
...
5407: Mentioned problem matchers and running cargo-watch as a VS Code Task r=matklad a=Michael-F-Bryan
See https://github.com/rust-analyzer/rust-analyzer/issues/3596#issuecomment-658887055 .
Co-authored-by: Michael-F-Bryan <michaelfbryan@gmail.com>
Co-authored-by: Michael Bryan <Michael-F-Bryan@users.noreply.github.com>
2020-07-16 17:03:39 +00:00
Michael Bryan
5226e886b0
Update docs/user/manual.adoc
...
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2020-07-16 23:30:19 +08:00
Michael Bryan
60a243b375
Update docs/user/manual.adoc
...
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2020-07-16 23:30:11 +08:00
Michael Bryan
9daa6b5cfa
Update docs/user/manual.adoc
...
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2020-07-16 23:30:02 +08:00
Aleksey Kladov
3b51a68236
More prominent link to the manual
2020-07-16 15:03:53 +02:00
Michael-F-Bryan
a0eaadee55
Mentioned problem matchers and running cargo-watch as a VS Code Task
2020-07-16 20:46:54 +08:00
Aleksey Kladov
c88d85bbb4
Update docs/dev/README.md
2020-07-07 11:23:59 +02:00
Laurențiu Nicola
8ab0c7ffd3
Don't ping people in PRs
2020-07-06 13:59:24 +03:00
vsrs
188d24024c
Fix tag level
2020-07-03 16:07:28 +03:00
vsrs
8b2a44dc3f
remove ---
2020-07-03 16:03:01 +03:00
vsrs
fd94a10be1
Add docs
2020-07-03 16:01:13 +03:00
Aleksey Kladov
3ef7676076
Implement StatusBar
2020-07-02 15:32:14 +02:00
Aleksey Kladov
c9f878962a
Add reload workspace command
2020-07-01 14:57:59 +02:00
Aleksey Kladov
991850bc3c
Unify magic env var name
2020-07-01 12:31:03 +02:00
Aleksey Kladov
4484908a86
Rewrite goto definition tests
2020-06-30 13:03:08 +02:00
Laurențiu Nicola
95d67ec401
Use more of FxHash*
2020-06-29 18:07:52 +03:00
LeSeulArtichaut
44a164b338
Escape space in path for MacOS binary location
2020-06-27 14:13:14 +02:00
Aleksey Kladov
a1c327ec1c
Document test minimality
2020-06-26 18:41:11 +02:00
Aleksey Kladov
e6c61d5072
Cleanup project.json deserialization
2020-06-24 16:16:52 +02:00
bors[bot]
c0b9ae5503
Merge #5004
...
5004: Fix panic in split/merge import assists r=matklad a=lnicola
Fixes #4368 #4905
Not sure if this is the best solution here. Maybe the `make` functions should be fallible? We generally seem to be playing whack-a-mole with panics in assists, although most of them are `unwrap`s in the assist code.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2020-06-23 14:55:03 +00:00
Laurențiu Nicola
76ddface08
Fix panic in split and merge import assists
2020-06-23 16:51:07 +03:00
Günther Wagner
837d6013b5
Update docs/user/manual.adoc
...
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2020-06-23 07:18:46 +02:00
Günther Wagner
965900c88c
Update manual.adoc
...
GNOME Builder (Nightly) supports now rust-analyzer
2020-06-22 22:38:43 +02:00
okaneco
3910ea5cbf
Fix typos in docs/dev/README.md
...
Small grammar and spelling changes
2020-06-16 10:44:56 -04:00
Aleksey Kladov
b5c4f2faa2
Update parser tests with env var
2020-06-15 11:02:17 +02:00
Aleksey Kladov
5413a2f962
Var naming
2020-06-15 10:33:17 +02:00
Aleksey Kladov
be0bb857c1
Discourage allocation
2020-06-13 14:27:23 +02:00
Jacek Generowicz
f280407d73
Fix parser test directory name in dev docs
2020-06-10 20:32:29 +02:00
Aleksey Kladov
1538206609
Explain inline tests
2020-06-10 14:12:08 +02:00
Laurențiu Nicola
e3663d60bf
Dev docs nits
2020-06-08 18:50:27 +03:00
Aleksey Kladov
4968321706
Don't @ people in commit messages
2020-06-08 13:19:32 +02:00
Aleksey Kladov
cc07c82fef
Preconditions style
2020-06-08 12:54:48 +02:00
Aleksey Kladov
ee8dec5dc1
IDE API
2020-06-08 12:52:28 +02:00
Aleksey Kladov
81ffe973ac
Document certain invariants
2020-06-06 19:54:41 +02:00
Aleksey Kladov
ae1acbd09c
Document import style
2020-06-06 19:32:45 +02:00
vsrs
da7ec4b339
Add hover actions LSP extension documentation.
2020-06-05 15:00:28 +03:00
Veetaha
41ae7ed79f
Bufgix
2020-06-04 01:48:47 +03:00
Mikhail Rakhmanov
6a0083a519
Merge branch 'master' into compute-lazy-assits
...
# Conflicts:
# crates/rust-analyzer/src/main_loop/handlers.rs
# crates/rust-analyzer/src/to_proto.rs
2020-06-03 19:26:01 +02:00
Mikhail Rakhmanov
1f7de306f5
Add documentation
2020-06-03 18:57:50 +02:00
Aleksey Kladov
5315934d88
Don't store generated docs in the repo
2020-06-03 18:26:50 +02:00
bors[bot]
1edf6d2d4f
Merge #4730
...
4730: Document rust-project.json r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-03 13:18:12 +00:00
Aleksey Kladov
fa019c8f56
Document rust-project.json
2020-06-03 15:17:26 +02:00
Aaron Loucks
ed86689264
Update generated feature docs
2020-06-03 06:55:27 -04:00
bors[bot]
1bbbeb886d
Merge #4703
...
4703: Start documenting review process r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-06-03 06:29:33 +00:00
Aleksey Kladov
994006585b
Start documenting review process
2020-06-03 08:28:12 +02:00
Aleksey Kladov
a83ab820a4
Spec better runnables
2020-06-02 17:34:18 +02:00
bors[bot]
131ccd9540
Merge #4580
...
4580: Fix invoking cargo without consulting CARGO env var or standard installation paths r=matklad a=Veetaha
Followup for #4329
The pr essentially fixes [this bug](https://youtu.be/EzQ7YIIo1rY?t=2189 )
cc @lefticus
Co-authored-by: veetaha <veetaha2@gmail.com>
2020-06-02 11:58:28 +00:00
Aleksey Kladov
6370de444d
Subscribe to protocol changes
2020-06-01 17:51:15 +02:00
Aleksey Kladov
aaa288126b
Document initilizationOptions used by rust-analyzer
2020-06-01 17:42:46 +02:00
Aleksey Kladov
d23814bf3d
Drop unused document
2020-06-01 17:29:24 +02:00
Aleksey Kladov
285717de33
Rename assist
2020-06-01 15:41:16 +02:00
Aleksey Kladov
899570ad7a
Link to the specific source line
2020-05-31 15:36:20 +02:00
Aleksey Kladov
f20775d7eb
docs
2020-05-31 15:20:26 +02:00
Aleksey Kladov
46292c7cec
Move assists documentation into the manual
2020-05-31 15:02:12 +02:00
Aleksey Kladov
5a2f4548e5
Rename user/readme.adoc -> user/manual.adoc
2020-05-31 13:22:02 +02:00
bors[bot]
09df51dab8
Merge #4664
...
4664: Generate feature documentation from code r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-31 10:50:11 +00:00
Aleksey Kladov
7e3ee77c83
Tweak whitespace
2020-05-31 12:12:41 +02:00
Aleksey Kladov
1c6a2eb14a
Move the rest of the features to generated docs
2020-05-31 11:29:19 +02:00
Aleksey Kladov
b795a07320
Doc more features
2020-05-31 10:14:36 +02:00
Aleksey Kladov
8915183d7d
Don't require module docs for Features and Assists
2020-05-31 09:59:38 +02:00
Aleksey Kladov
f593393ebb
Specify actions
2020-05-31 09:45:41 +02:00
veetaha
d605ec9c32
Change Runnable.bin -> Runnable.kind
...
As per matklad, we now pass the responsibility for finding the binary to the frontend.
Also, added caching for finding the binary path to reduce
the amount of filesystem interactions.
2020-05-31 05:21:45 +03:00
Aleksey Kladov
c8f27a4a88
Generate features docs from source
2020-05-31 01:54:54 +02:00
bors[bot]
5d84028170
Merge #4562
...
4562: Assist: replace anonymous lifetime with a named one r=matklad a=jbalint
(fixes #4523 )
Co-authored-by: Jess Balint <jbalint@gmail.com>
2020-05-30 08:01:00 +00:00
Stephan Seitz
49f674480a
Fix typo in docs/dev/lsp-extensions.md: automagiacally -> automagically
2020-05-29 23:43:14 +02:00
bors[bot]
190a0595a4
Merge #4640
...
4640: Add `inRustProject` when-clause for commands in vscode r=vsrs a=vsrs
At the moment all rust-analyzer commands always visible in the command palette, even if there is no rust project opened.
This PR adds special [when-clause](https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts ) context. This context also might be used in key bindings.
Co-authored-by: vsrs <vit@conrlab.com>
Co-authored-by: vsrs <62505555+vsrs@users.noreply.github.com>
2020-05-28 13:37:37 +00:00
vsrs
6d0f1e2e72
Add inRustProject
context documentation.
2020-05-28 16:04:42 +03:00
Aleksey Kladov
232a1de222
Link forum topic
2020-05-28 10:19:01 +02:00
Veetaha
bfdcf73b9b
typo
2020-05-27 14:04:57 +03:00
Aleksey Kladov
bb415c1818
Document inlay hints and runnables
...
We want to change those, but let's document what we have in meantime
2020-05-27 12:20:47 +02:00
Aleksey Kladov
0ebb25b29b
Document parentModule
experimental LSP request
2020-05-25 15:59:49 +02:00
Aleksey Kladov
a30bdd9795
Cleanup lsp extensions on the client side
2020-05-25 14:56:26 +02:00
Aleksey Kladov
76e170c3d0
Less rust-analyzer specific onEnter
2020-05-25 14:28:47 +02:00
veetaha
5dab5e7379
Introduce toggle inlay hints
vscode command
...
Users now can assign a shortcut for this command
via the general vscode
keybindings ui or `keybinding.json file`
Closes : #4599
2020-05-25 03:59:46 +03:00
Aleksey Kladov
dec4ba8023
Document some rust-analyzer specific protocol extensions
2020-05-24 17:01:40 +02:00
Aleksey Kladov
9342273616
Document matchingBrace LSP request
2020-05-24 16:53:18 +02:00
Aleksey Kladov
e4af9f6d8a
Reorgonise extensions docs
2020-05-24 15:49:32 +02:00
Aleksey Kladov
9d31b502b5
Link upstream issues
2020-05-22 19:14:14 +02:00
Aleksey Kladov
2075e77ee5
CodeAction groups
2020-05-22 17:32:46 +02:00
Jess Balint
1f9e02c74e
fix generated docs issue
2020-05-22 09:25:55 -05:00
Jess Balint
6594235dd8
Remove doc using cargo xtask codegen
.
2020-05-22 09:20:43 -05:00
Jess Balint
2ab79c6f4d
Assist: replace anonymous lifetime with a named one
...
(fixes #4523 )
2020-05-21 21:04:02 -05:00
Aleksey Kladov
5ef4ebff20
Use WorkspaceEdit for ssr
2020-05-22 00:28:49 +02:00
Aleksey Kladov
5b5ebec440
Formalize JoinLines protocol extension
2020-05-21 20:05:33 +02:00
Aleksey Kladov
4ac0abd296
Snippetify unwrap -> match
2020-05-21 00:01:08 +02:00
Aleksey Kladov
fd77170718
Snippetify introduce/inline var
2020-05-20 23:07:17 +02:00
bors[bot]
3dfc461f1e
Merge #4536
...
4536: Fix names of launch configuration in dev docs r=kjeremy a=kuy
Follows renaming of launch configurations in 80a42a0628
Co-authored-by: Yuki Kodama <endflow.net@gmail.com>
2020-05-20 19:04:02 +00:00
Alexandre Franke
dfb931a4f1
Fix GNOME spelling
...
GNOME is a trademark. :-)
2020-05-20 20:11:14 +02:00
Yuki Kodama
d58d6412d8
Fix names of launch configuration in dev docs
2020-05-21 03:01:37 +09:00
Aleksey Kladov
ba3a58d1b2
Snippetify fix_visibility
2020-05-20 14:13:17 +02:00
Aleksey Kladov
c446fd76a2
Snippetify fill_match_arms
2020-05-20 14:01:10 +02:00
Aleksey Kladov
cec773926f
Split change_ and fix_ visibility assists
2020-05-20 13:33:13 +02:00
Aleksey Kladov
33e111483f
Use snippets in change_return_type_to_result
2020-05-20 11:10:15 +02:00
Aleksey Kladov
9b2bd022dc
Snippetify add_new
2020-05-20 10:17:46 +02:00
Aleksey Kladov
767d169a2a
Better cursor placement when adding impl members
2020-05-20 02:07:21 +02:00
Aleksey Kladov
a04cababaa
Use snippets in add_missing_members
2020-05-20 01:53:21 +02:00
Aleksey Kladov
8eb3272ad6
Use snippets in add function
2020-05-20 01:23:05 +02:00
Aleksey Kladov
80545e5d3a
New assist: add turbo fish
2020-05-20 00:27:10 +02:00
Aleksey Kladov
a752853350
Add snippetTextEdit protocol extension
2020-05-19 20:28:27 +02:00
Aleksey Kladov
fa2e5299c3
Add snippet support for some assists
2020-05-19 20:28:27 +02:00
Aleksey Kladov
19a8c1450c
Relax VS Code version requirement
2020-05-18 00:16:35 +02:00
Coenen Benjamin
76af4a18db
Update features.md
2020-05-12 09:46:28 +02:00
Aleksey Kladov
72e229fcb3
Use RA_LOG instead of RUST_LOG for logging
...
RUST_LOG might be set up for debugging the user's problem, slowing
down rust-analyzer considerably. That's the same reason why rustc uses
RUSTC_LOG.
2020-05-11 19:16:00 +02:00
bors[bot]
9cb55966fe
Merge #4333
...
4333: Update Arch Linux and ALE install instructions r=matklad a=polyzen
Package has been added to the Arch repos:
https://www.archlinux.org/packages/community/x86_64/rust-analyzer/
ALE merged rust-analyzer support:
70005134e5
Co-authored-by: Daniel M. Capella <polyzen@archlinux.org>
2020-05-06 17:13:02 +00:00
Laurențiu Nicola
e0b63855b1
Fix Windows server path
...
CC @Coder-256.
2020-05-06 19:53:14 +03:00
Benjamin Coenen
51c02ab84f
add Ok wrapping
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-05-06 17:45:55 +02:00
Daniel M. Capella
2b06041692
Update Arch Linux and ALE install instructions
...
Package has been added to the Arch repos:
https://www.archlinux.org/packages/community/x86_64/rust-analyzer/
ALE merged rust-analyzer support:
70005134e5
2020-05-05 18:23:32 -04:00
bors[bot]
d1c1c01309
Merge #4306 #4308
...
4306: Make incremental sync opt-out and fix line index rebuild r=matklad a=lnicola
4308: Update server binary paths in docs r=matklad a=Coder-256
Fixed incorrect macOS path and converted to a list. Also, should the Windows path include `matklad.rust-analyzer`? (I can't check)
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Co-authored-by: Jacob Greenfield <jacob@jacobgreenfield.me>
2020-05-05 10:02:56 +00:00
Jacob Greenfield
bcc1717378
Update server binary paths
...
Fixed macOS path and converted to a list
2020-05-04 13:16:29 -04:00
Francisco Lopes
18ba86b1c5
[manual] Improve requirements and editor wording
2020-05-04 14:12:32 -03:00
bors[bot]
805c0b92ac
Merge #4287
...
4287: Update debugging.md r=matklad a=lonesometraveler
Co-authored-by: KENTARO OKUDA <lonesometraveler@mac.com>
2020-05-04 02:54:49 +00:00
KENTARO OKUDA
42e2eca921
Update debugging.md
2020-05-03 15:14:56 -04:00
bors[bot]
17bd79f497
Merge #4272
...
4272: Fix Typos r=jonas-schievink a=lonesometraveler
Co-authored-by: KENTARO OKUDA <lonesometraveler@mac.com>
2020-05-02 22:56:52 +00:00
KENTARO OKUDA
4f4d0fd9ac
Update syntax.md
2020-05-02 18:55:04 -04:00
KENTARO OKUDA
9914f7fbb2
Fix Typos
2020-05-02 17:45:46 -04:00
Benjamin Coenen
0b40876b99
Merge branch 'master' of github.com:rust-analyzer/rust-analyzer
2020-05-02 12:25:04 +02:00
Aleksey Kladov
b73dbbfbf2
Add missing members generates indented blocks
2020-05-02 11:53:07 +02:00
bors[bot]
d79a699f8e
Merge #4236
...
4236: Document Gnome Builder support r=matklad a=lnicola
Closes #3758 .
CC @gwutz
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2020-05-01 20:09:12 +00:00
KENTARO OKUDA
f5d20b6525
Fix Typos on guide.md
2020-05-01 14:00:06 -04:00
Benjamin Coenen
dc34162450
Merge branch 'master' of github.com:rust-analyzer/rust-analyzer
2020-05-01 16:26:30 +02:00
KENTARO OKUDA
eafb2107dd
Fix Typos
2020-05-01 09:43:08 -04:00
Laurențiu Nicola
c185e482e9
Document Gnome Builder support
2020-05-01 11:20:58 +03:00
bors[bot]
c96b2180c1
Merge #4228
...
4228: Fix typo in language server binary docs r=matklad a=ayazhafiz
Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com>
2020-04-30 20:45:19 +00:00
Ömer Sinan Ağacan
742055e29f
Update Roslyn link in syntax.md
...
Eric Lippert has a new blog that he keeps updating, update the link to that
2020-04-30 23:27:06 +03:00
hafiz
d185cbd99e
Update readme.adoc
2020-04-30 11:29:21 -07:00
hafiz
a00647cefe
Fix typo in language server binary docs
2020-04-30 11:21:16 -07:00
Heyward Fann
2e4ce5390c
docs(user): method chaining hints support
...
https://github.com/fannheyward/coc-rust-analyzer/issues/177#issuecomment-621109410
2020-04-30 11:38:20 +08:00