Lukas Wirth
ae74cc3b88
Skip redundant path search in resolve_completion_edits
2025-01-25 13:03:01 +01:00
Lukas Wirth
1329e6be49
Merge pull request #18993 from ChayimFriedman2/iter-config
...
feat: Provide a config to control auto-insertion of `await` and `iter()`
2025-01-24 13:31:30 +00:00
Wilfred Hughes
86a4b2fdd7
manual: Document all rust-project.json fields
...
Ensure that all the fields that rust-analyzer understands are in the
manual, they all have doc comments, and they use consistent
punctuation (`;` rather than mixing `,` and `;`).
Whilst we're here, fix the `sysroot_src` example and add 2024 as a
legal value for Rust edition.
2025-01-21 12:00:13 -08:00
Chayim Refael Friedman
47f4f3f0b2
Provide a config to control auto-insertion of await and iter()
2025-01-21 18:51:09 +02:00
Mark Murphy
1e40500679
Update syntax tree viewer docs
2025-01-17 15:55:38 -05:00
VinTarZ
d71015d90d
Fix debug_assertions broken in 1c5a125beb
2025-01-16 14:19:16 +03:00
Lukas Wirth
557c467aa9
Flip on typing config to be opt-in, better defaults
2025-01-15 10:25:37 +01:00
Lukas Wirth
d4fa92e80a
Implement implicit sized bound inlay hints
2025-01-10 12:38:21 +01:00
Lukas Wirth
d133136bc4
Merge pull request #18813 from Giga-Bowser/syntax-tree-view
...
feat: Add a new and improved syntax tree view
2025-01-10 06:56:34 +00:00
Giga Bowser
cb5ce9eaa6
Remove the old syntax tree viewer
2025-01-09 13:20:06 -06:00
Giga Bowser
5ffe45d8cd
Add a new and improved syntax tree viewer
2025-01-09 13:20:06 -06:00
Lukas Wirth
2e234e3d1b
Merge pull request #18880 from PrototypeNM1/extra-includes
...
Add config setting which allows adding additional include paths to the VFS.
2025-01-09 10:24:51 +00:00
Nicholas Rishel
1f9686993a
Add config setting which allows adding additional include paths to the VFS.
2025-01-08 10:57:46 -08:00
qjerome
e9a13ab6d7
fix: autogenerate files
2025-01-08 14:47:21 +01:00
Lukas Wirth
2ac803ec71
target-triple -> target-tuple
2025-01-07 14:25:43 +01:00
Lukas Wirth
f1c0d176f3
Remove rust-analyzer.cargo.sysrootQueryMetadata config again
2025-01-07 14:00:22 +01:00
Lukas Wirth
8a9cacb22d
fix: Be more permissive with completion resolve data
2025-01-06 11:22:42 +01:00
Lukas Wirth
7e639ee3dd
Merge pull request #18179 from ChayimFriedman2/omit-trait-completion
...
feat: Allow excluding specific traits from completion
2025-01-01 14:34:56 +00:00
Lukas Wirth
5303dc5d99
Revamp auto-import exclude config
2025-01-01 15:06:44 +01:00
Lukas Wirth
45954ebaa4
Reduce the default autoimport exclusion list
2025-01-01 14:32:45 +01:00
Chayim Refael Friedman
7e6ade117c
Allow excluding specific traits from completion
...
To be accurate, only their methods are excluded, the trait themselves are still available.
I also excluded a bunch of std traits by default. Some less opinionated, like `AsRef`, which should never be used directly except in generic scenarios (and won't be excluded there), some more opinionated, like the ops traits, which I know some users sometimes want to use directly. Either way it's configurable.
It should be pretty easy to extend support to excluding only specific methods, but I didn't do that currently.
Traits configured to be excluded are resolved in each completion request from scratch. If this proves too expensive, it is easy enough to cache them in the DB.
2025-01-01 13:49:35 +01:00
roife
c54bfcb181
fix incorrect name for UpdateTest config
2024-12-26 19:51:14 +08:00
roife
22280b65ff
feat: add config UpdateTest to hover actions
2024-12-26 19:51:14 +08:00
roife
edb61b10ab
feat: support UpdateTest in codelens
2024-12-26 19:50:32 +08:00
Lukas Wirth
e30ce42671
Merge pull request #18707 from ChayimFriedman2/subst
...
feat: Show substitution where hovering over generic things
2024-12-24 14:16:16 +00:00
Lukas Wirth
1962cae609
fix: Properly check if workspace flychecking is allowed
2024-12-22 12:10:48 +01:00
Chayim Refael Friedman
b5486ffc42
Show substitution where hovering over generic things
...
There are few things to note in the implementation:
First, this is a best-effort implementation. Mainly, type aliases may not be shown (due to their eager nature it's harder) and partial pathes (aka. hovering over `Struct` in `Struct::method`) are not supported at all.
Second, we only need to show substitutions in expression and pattern position, because in type position all generic arguments always have to be written explicitly.
2024-12-20 11:30:19 +02:00
Lukas Wirth
de7808bb71
internal: Don't serialize empty fields in completions and resolve payloads
2024-12-16 11:25:29 +01:00
Sam Estep
33f7d1dae1
Fix publish workflow link in manual
2024-12-11 14:35:36 -05:00
Kirill Bulatov
4169926b3f
Address the feedback from pascalkuthe
...
* Use Base64 to minify the hash representation in the JSON data
* Do hash checks only for items with similar labels
2024-12-10 13:01:23 +02:00
Kirill Bulatov
d348ffb480
Always compute the hash when r-a wants the imports to be resolved
2024-12-09 22:26:00 +02:00
Kirill Bulatov
62d97d9ba7
Draft completion hashing
2024-12-09 22:26:00 +02:00
Lukas Wirth
f021ec3b96
Disable pipe on typing handler
2024-12-09 15:52:04 +01:00
Lukas Wirth
54dbf1b446
Add typing handler for param list pipe
2024-12-06 15:49:36 +01:00
Lukas Wirth
bac0ed579f
Make bracket typing handler work on more things
2024-12-06 12:47:32 +01:00
Lukas Wirth
d71e41dba6
Disable < typing handler again
2024-12-05 09:46:23 +01:00
Tarek
9aff46632e
chore: deprecate typing.autoClosingAngleBrackets configuration
...
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-03 22:38:51 +02:00
Tarek
d6b701e251
internal: Make exclude characters for typing assists configurable, default to None
...
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-03 22:38:51 +02:00
Laurențiu Nicola
8d5e91c94f
Merge pull request #18511 from darichey/sysroot-query-metadata
...
Re-add `rust-analyzer.cargo.sysrootQueryMetadata`
2024-11-26 15:11:44 +00:00
Mark Murphy
9f73787b98
Update request entry point file path in architecture.md
2024-11-23 13:46:40 -05:00
David Richey
3c98b98ca7
Re-add rust-analyzer.cargo.sysrootQueryMetadata
2024-11-18 16:29:33 -06:00
Kirill Bulatov
4b621e030a
Update the file hash
2024-11-11 16:06:55 +01:00
Sam Estep
6da2cc272f
Replace with C-Architecture
2024-11-10 13:34:26 -05:00
Sam Estep
d1da09acf5
Delete design label from list
2024-11-07 11:49:22 -05:00
Lukas Wirth
cd206f5c9b
Merge pull request #18304 from davidkurilla/docs-create-setup-document
...
docs: create setup documentation
2024-10-30 09:52:39 +00:00
David Kurilla
0719432903
docs: remove unnecessary prerequisites setup.md
2024-10-22 08:48:09 -07:00
Lukas Wirth
70d0b57cf0
Update ide tests
2024-10-21 11:28:19 +02:00
David Kurilla
9ee29f4254
style: fix typos
2024-10-18 14:58:43 -07:00
David Kurilla
df14c010be
docs: create setup documentation
2024-10-18 14:58:43 -07:00
roife
b7ed8150a3
feat: respect references.exclude_tests in call-hierarchy
2024-10-13 05:19:28 +08:00