bors
78d5f05e70
Auto merge of #17508 - jjoeldaniel:landing-page, r=Veykril
...
feat: Add landing/faq walkthrough pages
This is a basic implementation of a landing and FAQ page; I've included the bare-bones information as well as a [recommended section on inlay hints](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Landing.20Page/near/446135321 ).
I've also added `rust-analyzer: Open Walkthrough` and `rust-analyzer: Open FAQ` commands for ease of access.
I am hoping to create a small list of FAQ to include that might be useful as well as any other information I may have missed in the landing page. Feel free to share any suggestions!
![landing/faq page demo](https://github.com/rust-lang/rust-analyzer/assets/100006388/4644e4f0-4555-4b29-83c1-b048084ad63d )
cc #13351
2024-07-06 13:59:36 +00:00
bors
72f278b5be
Auto merge of #17522 - Veykril:comptimes, r=Veykril
...
internal: Cut compiletimes slightly
2024-07-01 08:43:11 +00:00
Lukas Wirth
b60b27bd22
Remove serde flag from indexmap dependency
2024-06-30 18:14:53 +02:00
Tavo Annus
1389312871
Make borrow checking configurable for term search
2024-06-29 12:24:08 +03:00
Joel Daniel Rico
57497645f8
Add landing/faq walkthroughs and commands for quick access
2024-06-28 11:13:12 -07:00
Tavo Annus
51c3bd215a
Fix suggestions of unstable constants
2024-06-22 21:33:58 +03:00
Joel Daniel Rico
2ebcf55ece
feat: add toggleLSPLogs
command
...
add `toggleLSPLogs` command
update docs to reflect new command
2024-06-17 04:08:32 -07:00
Lukas Wirth
1dcb11be5d
Simplify some config serialization stuff
2024-06-11 10:45:17 +02:00
ChosenName
14df2a4b7a
fmt
2024-06-04 22:16:08 -06:00
ChosenName
7d8125abe7
fmt
2024-06-04 21:35:41 -06:00
ChosenName
bf1a3a32bd
Update package.json
2024-06-04 21:08:30 -06:00
Tavo Annus
ab18604309
Make term search fuel configurable
2024-05-08 19:46:33 +03:00
Wilfred Hughes
b1266405ef
docs: Fix typo in VS Code setting description
2024-04-30 11:17:57 -07:00
bors
65eda41e65
Auto merge of #17021 - roife:add-hover-limits-for-adts, r=Veykril
...
Support hovering limits for adts
Fix #17009
1. Currently, r-a supports limiting the number of struct fields displayed when hovering. This PR extends it to support enum variants and union fields. Since the display of these three (ADTs) is similar, this PR extends 'hover_show_structFields' to 'hover_show_adtFieldsOrVariants'.
2. This PR also resolved the problem that the layout of ADT was not restricted by display limitations when hovering on the Self type.
3. Additionally, this PR changes the default value of display limitations to `10` (instead of the original `null`), which helps users discover this feature.
2024-04-25 07:23:27 +00:00
Lukas Wirth
a2ed6837bc
Allow rust files to be used linkedProjects
2024-04-21 16:26:55 +02:00
roife
43576989a1
Add hovering limitations support for variants
2024-04-20 09:14:00 +08:00
bors
50bdeaad07
Auto merge of #17108 - Veykril:rustc-ws-hacks, r=Veykril
...
internal: Cleanup cfg and env handling in project-model
Fixes https://github.com/rust-lang/rust-analyzer/issues/16122#issuecomment-2065794340
`miri` and `debug_assertions` are now enabled via the `cargo.cfgs` config by default, allowing them to be disabled by overwriting the config.
2024-04-19 16:00:54 +00:00
roife
e0e28ec856
fix: add a separate setting for enum variants
2024-04-19 21:45:56 +08:00
Lukas Wirth
0485a85ee2
Set debug_assertions and miri cfgs as config defaults, allowing them to be overwritten
2024-04-19 11:06:55 +02:00
bors
eea61bd4d1
Auto merge of #16726 - Veykril:rustc-ws-hacks, r=Veykril
...
internal: Remove rustc core test cfg hacks
cc https://github.com/rust-lang/rust-analyzer/issues/16538
2024-04-19 07:28:50 +00:00
Lukas Wirth
2e54c0af40
Remove rustc core test cfg hacks
2024-04-19 09:27:05 +02:00
Kevin Reid
db292bd89e
Make test harness arguments configurable and not --nocapture
.
...
* Added config `runnables.extraTestBinaryArgs` to control the args.
* The default is `--show-output` rather than `--nocapture` to prevent
unreadable output when 2 or more tests fail or print output at once.
* Renamed variables in `CargoTargetSpec::runnable_args()` for clarity.
Fixes <https://github.com/rust-lang/rust-analyzer/issues/12737 >.
2024-04-18 18:37:09 -07:00
roife
6bb85985d7
fix: adjust the limitation for ADTs' fields to 5
2024-04-16 16:28:23 +08:00
roife
01c3559bf3
Update tests and docs for hover_show_adtFieldsOrVariants
2024-04-16 16:27:56 +08:00
Lukas Wirth
597c293a69
Adjust package.json semantic highlighting items
2024-04-15 17:00:03 +02:00
Lukas Wirth
ff279f1e91
Fix allFeatures config docs
2024-04-01 14:16:36 +02:00
Alexis (Poliorcetics) Bourget
174af88e76
feat: Add rust-analyzer.cargo.allTargets
to configure passing --all-targets
to cargo invocations
2024-03-27 01:57:41 +01:00
Young-Flash
d81148a009
expose config for hover struct field display
2024-03-25 19:55:19 +08:00
Lukas Wirth
1c6d1b4f2a
fix: Add config and capability for test explorer
2024-03-06 19:20:58 +01:00
Lukas Wirth
8844640c6f
fix: Put style lints behind disabled-by-default config
2024-03-05 11:43:23 +01:00
bors
ce3216e0ae
Auto merge of #15938 - Young-Flash:display_trait_item_when_hover, r=Veykril
...
feat: add hover display for trait assoc items
This PR enable preview assoc items when hover on `trait`
![image](https://github.com/rust-lang/rust-analyzer/assets/71162630/d9c3949c-33cf-4a32-aa97-3af46b28033a )
inspired by https://github.com/rust-lang/rust-analyzer/pull/15847
2024-03-05 08:26:53 +00:00
Young-Flash
dba67b46a1
update for review
2024-03-02 10:01:04 +08:00
Lukas Wirth
ed7e9aa5d8
Simplify
2024-03-01 13:25:24 +01:00
Lukas Wirth
30ad0ae209
internal: Revert #16541
2024-02-27 15:48:30 +01:00
Young-Flash
2e87f31fe9
add HoverDisplayConfig
2024-02-22 17:37:40 +08:00
Young-Flash
35ec5955eb
add config item for hover display
2024-02-21 11:08:45 +08:00
Lukas Wirth
ead369117a
CrateOrigin::Local means local to the project workspace, not cargo workspace
2024-02-16 16:28:17 +01:00
Lukas Wirth
1e6cef94df
fix: Fix build scripts not being rebuilt in some occasions
2024-02-14 15:20:45 +01:00
Davis Vaughan
45e05abf7b
Activate on top level Cargo.toml
and rust-project.json
files
2024-02-12 18:14:10 -05:00
bors
35b0d66875
Auto merge of #16541 - Veykril:highlight-rustdoc, r=Veykril
...
Highlight rustdoc
Updated version of https://github.com/rust-lang/rust-analyzer/pull/16340
2024-02-12 15:20:33 +00:00
bors
1811210339
Auto merge of #15476 - Wilfred:implement-saved-file3, r=Veykril
...
Substitute $saved_file in custom check commands
If the custom command has a $saved_file placeholder, and we know the file being saved, replace the placeholder and run a check command.
If there's a placeholder and we don't know the saved file, do nothing.
This is a simplified version of #15381 , which I hope is easier to review.
2024-02-12 14:59:37 +00:00
Wilfred Hughes
cdbf54f4bd
flycheck: initial implementation of $saved_file
...
If the custom command has a $saved_file placeholder, and we know the
file being saved, replace the placeholder and then run a check command.
If there's a placeholder and we don't know the saved file, do nothing.
2024-02-12 15:45:48 +01:00
Tavo Annus
125791386d
Cleanup term search related changes
2024-02-11 14:35:54 +02:00
Tavo Annus
88964c0b6a
Optionally disable term search for autocompletion
2024-02-11 13:33:29 +02:00
bors
13707845f7
Auto merge of #15863 - davidbarsky:davidbarsky/start-of-monorepo-mode, r=Veykril
...
feature: Create `UnindexedProject` notification to be sent to the client
(Note that this branch contains commits from https://github.com/rust-lang/rust-analyzer/pull/15830 , which I'll rebase atop of as needed.)
Based on the discussion in https://github.com/rust-lang/rust-analyzer/issues/15837 , I've added a notification and off-by-default toggle to send that notification from `handle_did_open_text_document`. I'm happy to rename/tweak this as needed.
I've been using this for a little bit, and it does seem to cause a little bit more indexing/work in rust-analyzer, but it's something that I'll profile as needed, I think.
2024-02-08 19:36:09 +00:00
David Barsky
6330b028b3
feature: Add a UnindexedProject
notification and a corresponding setting.
2024-02-08 14:23:00 -05:00
Lukas Wirth
0258f60cfe
feat: Allow cargo check to run on only the current package
2024-02-08 10:40:42 +01:00
Young-Flash
6f303f49fe
feat: enable excluding refs search results in test
2024-01-28 18:28:13 +08:00
bors
3f4c6dac3d
Auto merge of #16372 - davidsemakula:import-granularity-one, r=Veykril
...
feat: Add "One" import granularity
Adds a new import granularity option "One" that merges all imports into a single use statement as long as they have the same visibility and attributes.
This is similar to [rustfmt's `imports_granularity = "One"`](https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=import#imports_granularity ).
Fixes : #11361
2024-01-18 15:40:12 +00:00
Ali Bektas
21020919e3
v2
2024-01-18 12:09:23 +01:00