Victor Song
aeef7b644b
Add config option to use rust-analyzer
specific target dir
...
Adds a Rust Analyzer configuration option to set a custom
target directory for builds. This is a workaround for Rust Analyzer
blocking debug builds while running `cargo check`. This change
should close #6007
2023-10-09 02:15:05 -05:00
bors
e5e937ae5e
Auto merge of #15582 - vxpm:master, r=HKalbasi
...
add option to show full function signatures in completion docs
implements #15538
with `"rust-analyzer.completion.fullFunctionSignatures.enable": false`:
![image](https://github.com/rust-lang/rust-analyzer/assets/59714841/ff739ad1-9975-461f-a62d-22c7823e7b71 )
with `"rust-analyzer.completion.fullFunctionSignatures.enable": true`:
![image](https://github.com/rust-lang/rust-analyzer/assets/59714841/9bc98300-cef6-44ef-a353-dcf35cd36fce )
2023-09-24 07:38:38 +00:00
bors
2b580a1f3c
Auto merge of #15492 - RalfJung:invocation, r=Veykril
...
extend check.overrideCommand and buildScripts.overrideCommand docs
Extend check.overrideCommand and buildScripts.overrideCommand docs regarding invocation strategy and location.
However something still seems a bit odd -- the docs for `invocationStrategy`/`invocationLocation` talk about "workspaces", but the setting that controls which workspaces are considered is called `linkedProjects`. Is a project the same as a workspace here or is there some subtle difference?
2023-09-22 16:09:01 +00:00
Lukas Wirth
ba7f2bfb85
Update config docs
2023-09-22 17:46:17 +02:00
vxpm
6b487ed4be
fix & run tests
2023-09-08 22:03:42 -03:00
Kirill Bulatov
e07fbabcfe
Resolve inlay hint data
...
Skip every propery set in inlay hint client resolve capabilities,
reducing overall json footprint.
2023-09-02 18:28:35 +03:00
Lukas Wirth
2dbc7e3e1a
Restructure some modules in rust-analyzer crate
2023-09-02 14:16:04 +02:00
Lukas Wirth
ea74cc4b9a
Update architecture.md
2023-08-30 19:53:47 +02:00
Ralf Jung
887cc48ba8
fix help text for rust-analyzer.check.invocation{Strategy,Location}
2023-08-21 09:54:24 +02:00
bors
e13fac379e
Auto merge of #15262 - adamse:master, r=HKalbasi
...
add check.ignore to list cargo check diagnostics to ignore (dead_code, unused_imports, ...)
fixes #14798
2023-08-08 18:49:45 +00:00
Adam Sandberg Ericsson
9cb1f45e6f
add check.ignore to list cargo check diagnostics to ignore (dead_code, unused_imports, ...)
...
fixes #14798
2023-08-08 14:28:35 +02:00
bors
bc1b0bfa7f
Auto merge of #15308 - vsrs:runnable_env_per_platform, r=HKalbasi
...
Runnable env per platform
This PR adds an option to specify runnables `env` per platform (win32, linux, etc.):
```
{
"rust-analyzer.runnables.extraEnv": [
{
"platform": "win32",
"env": {
"SCITER_BIN_FOLDER": "C:\\Projects\\3rd\\sciter-js-sdk\\bin\\windows\\x64",
}
},
{
"platform":["linux","darwin"],
"env": {
"SCITER_BIN_FOLDER": "/home/vit/Projects/sciter/sciter-js-sdk/bin/linux/x64",
}
}
]
}
```
2023-07-28 07:03:09 +00:00
prez
b6f31f0fee
docs: Add example on how to change configuration options in Kate
2023-07-20 11:47:41 +02:00
vsrs
7f29f016f3
Add docs
2023-07-18 17:58:51 +07:00
Adenine
add9056c32
Merge branch 'rust-lang:master' into master
2023-07-09 16:10:40 -04:00
Laurențiu Nicola
8befd920d6
Remove old section about downloading the server from the manual
2023-07-09 09:26:05 +03:00
Adenine
1dd54eb44a
change viewMemoryLayoutParams to be textPositionParams
2023-07-08 12:25:54 -04:00
Adenine
514bab504e
Merge branch 'rust-lang:master' into master
2023-07-08 12:21:38 -04:00
Ali Bektas
2e5d431dfc
Update docs/user/manual.adoc
...
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2023-07-08 16:15:08 +02:00
Ali Bektas
655dd188d6
Remind user to check $PATH after installation.
2023-07-08 11:59:46 +02:00
Adenine
4d5c66986e
cleanup + docs + tests
2023-07-07 23:12:09 -04:00
Mohsen Alizadeh
6c3e15aaa0
13583 rename runnable env to runnables extra env
2023-06-25 17:26:04 -07:00
Laurențiu Nicola
8589a8100a
Neovim, not NeoVim
2023-06-23 20:00:53 +02:00
Alex Kladov
6303551cb8
internal: use consistent style for error handling
2023-06-19 13:01:47 +01:00
MysticNebula70
8cc55bfee6
doc: remove duplicated words
2023-06-16 18:22:43 +08:00
Wilfred Hughes
5da14237eb
Document the sysroot field in JsonProject
...
rust-analyzer supports both `sysroot` and `sysroot_src` in
`rust-project.json`. Document `sysroot` and show example values for
both fields.
2023-06-08 14:56:37 -07:00
Lukas Wirth
3c862507b9
Add render configs for memory layout hovers
2023-05-30 18:36:06 +02:00
bors
e8dbb8e2e0
Auto merge of #14911 - Veykril:config-cfg, r=Veykril
...
Allow setting cfgs
Fixes https://github.com/rust-lang/rust-analyzer/issues/14365
2023-05-30 12:00:14 +00:00
Lukas Wirth
cea84427e0
Allow setting cfgs
2023-05-28 13:43:21 +02:00
Mason Shuler
05d63eff9c
Make rustup heading title match other titles
2023-05-26 16:41:51 -04:00
Mason Shuler
def3b5d7dd
Remove outdated rustup installation issue description
2023-05-26 16:40:30 -04:00
Lukas Wirth
91d5a689c7
Add config for disabling non standard lsp highlight tokens
2023-05-11 10:01:38 +02:00
bors
d3ce333ec8
Auto merge of #14742 - Veykril:closure-capture-inlays, r=Veykril
...
feat: Closure capture inlay hints
I opted for a fictional `move(foo, &bar, &mut qux)` syntax here, disabled by default as these are not correct rust syntax and hence could cause confusion.
![image](https://user-images.githubusercontent.com/3757771/236447484-649a4ea6-ad61-496e-bad8-765a5236150e.png )
2023-05-08 09:52:29 +00:00
Yury Ivanou
98a4c5049f
Rename hover memory layout config key
2023-05-07 18:37:56 +03:00
Yury Ivanou
4ed0fa8414
Add config for disabling hover memory layout data
2023-05-07 18:21:07 +03:00
Lukas Wirth
8081a654da
feat: Closure capture inlay hints
2023-05-05 13:38:22 +02:00
Ddystopia
7e19d99d4f
Add a localDocs
capability
2023-05-02 17:13:21 +02:00
Ddystopia
b74b9797bc
Update hash in lsp-extensions.md
2023-05-02 17:08:54 +02:00
Ddystopia
da0ffe79d0
Change signature of externalDocs
in lsp-extensions
2023-05-02 17:06:39 +02:00
Bruno Ortiz
ecfe7c0488
last fixes after rebase
2023-05-02 11:24:08 -03:00
Bruno Ortiz
66fe84d936
accepting review suggestions
2023-05-02 11:01:41 -03:00
Bruno Ortiz
1b8288ff96
Fixing naming from graph to list
2023-05-02 10:59:29 -03:00
Bruno Ortiz
e2535926e9
Fixing tests
2023-05-02 10:56:50 -03:00
Lukas Wirth
a64626d99e
Highlight closure captures when cursor is on pipe
2023-05-02 08:59:40 +02:00
hkalbasi
6312fbf521
MIR episode 4
2023-05-01 23:23:10 +03:30
wtj
c533ac3573
minor: fix typos
2023-04-28 18:49:05 +08:00
Lukas Wirth
c21860bd6a
Remove proc-macro server command from the rust-analyzer binary
2023-04-26 08:19:28 +02:00
Josh Soref
bc7d84c3ce
Spelling
...
* a rule
* access
* after
* amount
* annotations
* assignment
* assist
* associated
* attribute
* borrowed
* built-in type
* clarification
* command
* const
* constructor
* corresponding
* counterparts
* curlies
* dependencies
* deterministic
* diagnostic
* duplicates
* edge
* edited
* efficient
* elsewhere
* execution
* expression
* extensions
* extracted
* fill
* github
* helper
* heuristic
* incomplete
* indent end
* inlay
* invocation
* lifetime
* looking
* maybe
* move
* mutability
* mutable
* necessarily
* necessary
* negative
* nonexistent
* occurred
* offsets
* offsetted
* overridden
* parameters
* params
* params_and_where_preds_in_scope
* paredit
* parent
* parentheses
* prepended if
* punctuation
* receive
* receiver
* referring
* repeated
* representing
* semantically
* separately
* shouldnot
* siblings
* similar
* something's
* statement
* struct
* structure
* surprise
* the
* this
* transparent
* unimplemented
* unnamed
* unnecessary
* unneeded
* unreachable
* unterminated
* utilities
* variant
* variants
* visibility
* work around (v)
* workaround
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-19 09:45:55 -04:00
Lukas Wirth
0286e46e5f
internal: Skip code lens resolution for mismatched document versions
2023-04-13 10:55:28 +02:00
hkalbasi
59b6f2d9f2
Compute closure captures
2023-04-10 23:04:34 +03:30