about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/docs
AgeCommit message (Collapse)AuthorLines
2024-09-11Auto merge of #18057 - alibektas:better_ratoml_testing, r=Veykrilbors-1/+1
internal: Better testing infra for ratoml This PR makes some improvements on how we test configs that come from `rust-analyzer.toml` files. It was primarily used to solve #18021 but along the way I could not really determine the cause of the said issue which makes me think that it may not be related to the changes that I made earlier to the ratoml infra. In either way `custom_snippets` are now made `global` because we still don't have a tree that maps a `SourceRootId` to a set of `Snippet`s.
2024-09-08Better testing infra for ratomlAli Bektas-1/+1
2024-09-08Automatically add semicolon when completing unit-returning functionsChayim Refael Friedman-0/+7
But provide a config to suppress that. I didn't check whether we are in statement expression position, because this is hard in completion (due to the natural incompleteness of source code when completion is invoked), and anyway using function returning unit as an argument to something seems... dubious.
2024-09-01Provide an option to hide deprecated items from completionChayim Refael Friedman-0/+5
2024-08-30Improve inlay hint resolution reliabilityLukas Wirth-1/+1
2024-08-23Auto merge of #17857 - ChayimFriedman2:rust-project-cfg-group, r=Veykrilbors-0/+12
feat: Allow declaring cfg groups in rust-project.json, to help sharing common cfgs Closes #17815.
2024-08-19Improve documentation for `InvocationStrategy`Lukas Wirth-2/+4
2024-08-19chore(config): remove `invocationLocation` in favor of `invocationStrategy`Victor Song-24/+2
These flags were added to help rust-analyzer integrate with repos requiring non-Cargo invocations. The consensus is that having two independent settings are no longer needed. This change removes `invocationLocation` in favor of `invocationStrategy` and changes the internal representation of `InvocationStrategy::Once` to hold the workspace root.
2024-08-12Allow declaring cfg groups in rust-project.json, to help sharing common cfgsChayim Refael Friedman-0/+12
2024-08-12internal: Reply to requests with defaults when vfs is still loadingLukas Wirth-1/+1
2024-08-05Auto merge of #17793 - jjoeldaniel:msvc-docs, r=Veykrilbors-0/+6
docs: add msvc note to manual Added note for Windows users to have the latest MSVC to minimize setup issues. Closes #4870
2024-08-05feat: Load sysroot library via cargo metadataLukas Wirth-10/+0
2024-08-05add msvc note to manualJoel Daniel Rico-0/+6
2024-07-31docs: Fix JSON example for rust-analyzer.workspace.discoverConfigWilfred Hughes-4/+3
The user does not specify `{arg}` in their JSON, and be pedantic about commas in JSON sample.
2024-07-29Auto merge of #17707 - Veykril:proc-macro-err-cleanup, r=Veykrilbors-9/+1
feat: Use spans for builtin and declarative macro expansion errors This should generally improve some error reporting for macro expansion errors. Especially for `compile_error!` within proc-macros
2024-07-26docs: Reference cov_mark crate instead of test_utils/markEdward Jones-1/+1
Seems this was switched over in https://github.com/rust-lang/rust-analyzer/issues/7922
2024-07-26Internal: Cleanup proc-macro error handlingLukas Wirth-9/+1
2024-07-23internal: remove UnindexedProject notificationDavid Barsky-25/+1
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
2024-07-23Remove lens.forceCustomCommands configPaulDotSH-6/+0
2024-07-18Auto merge of #17246 - ↵bors-1/+99
davidbarsky:david/move-rust-project-generation-to-server, r=Veykril feature: teach rust-analyzer to discover `linked_projects` This PR's been a long-time coming, but like the title says, it introduces server-side project discovery and removes the extension hooks I previously introduced. I don't think this PR is ready to land, but here are the things I'm feeling squishy about: - I don't think I like the idea of introducing the `cargo-metadata` command-but-for-everything-else in the `flycheck` module, but the progress reporting infrastructure was too convenient to pass up. Happy to move it elsewhere. Here are the things I _know_ I need to change: - For progress reporting, I'm extracting from a `serde_json::Value` that corresponds to `tracing_subsciber::fmt::Layer`'s JSON output. I'd like to make this a bit more structured/documented than the current nonsense I wrote. - The progress reporting currently hardcodes "Buck"; it should be deriving that from the previously mentioned more-structured-output. - This doesn't handle *reloading* when a corresponding buildfile is changed. It should be doing that. <details> <summary>Anyway, here's a video of rust-analyzer discovering a Buck target.</summary> https://github.com/rust-lang/rust-analyzer/assets/2067774/be6cd9b9-2c9a-402d-847f-05f860a91df1 </details>
2024-07-18feature: move `linked_projects` discovery to the rust-analyzer serverDavid Barsky-1/+99
2024-07-17Auto merge of #17616 - Veykril:config-param-hints, r=Veykrilbors-2/+2
Fix incorrect generic parameter hint defaults Missed this in the review but we should show const param hints, not lifetime param hints by default
2024-07-17Fix incorrect generic parameter hint defaultsLukas Wirth-2/+2
2024-07-17Add --keep-going to rust-analyzer.cargo.buildScripts.overrideCommand docsLaurențiu Nicola-1/+1
2024-07-14Update manual.adocAnita Hammer-1/+1
2024-07-08feat: add inlay hints for generic parametersLiao Junxuan-0/+15
fixes #11091 By default, only hints for const generic parameters are shown.
2024-07-07Auto merge of #17523 - wada314:master, r=Veykrilbors-0/+5
Add an option to use "::" for the external crate prefix. Fixes #11823 . Hi I'm very new to rust-analyzer and not sure how the review process are. Can somebody take a look at this PR? thanks!
2024-07-07Fix stale reference in architecture.mdLukas Wirth-1/+1
2024-07-07Move capability querying out of the config moduleLukas Wirth-1/+1
2024-07-06Flatten cargoExtraArgs away from the runnable lsp extensionLukas Wirth-8/+3
2024-07-06Add environment to runnable lsp extensionLukas Wirth-4/+33
2024-07-02squash.Shohei Wada-0/+5
2024-07-01Auto merge of #17522 - Veykril:comptimes, r=Veykrilbors-6/+6
internal: Cut compiletimes slightly
2024-06-30Remove serde flag from indexmap dependencyLukas Wirth-6/+6
2024-06-29Make borrow checking configurable for term searchTavo Annus-0/+5
2024-06-22Fix suggestions of unstable constantsTavo Annus-4/+4
2024-06-19Auto merge of #17438 - jjoeldaniel:toggle_lsp_logs, r=Veykrilbors-2/+2
feat: add `toggleLSPLogs` command Implement client-side command to toggle LSP logs in VSCode. The command replaces the need to add/remove the `"rust-analyzer.trace.server": "verbose"` setting each time one wants to display logs. I've also updated the docs/ instances that reference the now outdated manual method. The command labeled `rust-analyzer: Toggle LSP Logs` enables the setting project-wide and opens the relevant trace output channel. Closes #8233
2024-06-17feat: add `toggleLSPLogs` commandJoel Daniel Rico-2/+2
add `toggleLSPLogs` command update docs to reflect new command
2024-06-16docs: fix manual generation instructionsLunaphied-1/+1
To generate all the requisite files, you need to run `cargo xtask codegen` not `cargo test -p xtask`.
2024-06-11Auto merge of #16840 - Wilfred:shell_runnable, r=Veykrilbors-2/+13
Allow rust-project.json to include arbitrary shell commands for runnables This is a follow-up on #16135, resolving the feedback raised :) Allow rust-project.json to include shell runnables, of the form: ``` { "build_info": { "label": "//project/foo:my-crate", "target_kind": "bin", "shell_runnables": [ { "kind": "run", "program": "buck2", "args": ["run", "//project/foo:my-crate"] }, { "kind": "test_one", "program": "test_runner", "args": ["--name=$$TEST_NAME$$"] } ] } } ``` If these runnable configs are present for the current crate in rust-project.json, offer them as runnables in VS Code. This PR required some boring changes to APIs that previously only handled cargo situations. I've split out these changes as commits labelled 'refactor', so it's easy to see the interesting changes.
2024-06-11feature: add build system info; runnables to `rust-project.json`Wilfred Hughes-2/+13
2024-06-11Simplify some config serialization stuffLukas Wirth-1/+1
2024-06-07Fix processing of ratoml filesLukas Wirth-1/+1
2024-05-24Update docsroife-1/+2
2024-05-23Allow sysroots to only consist of the source root dirLukas Wirth-1/+1
2024-05-17Correct Neovim 0.10 inlay hints config exampleAdam Szkoda-1/+1
2024-05-08Make term search fuel configurableTavo Annus-0/+10
2024-04-30docs: Fix typo in VS Code setting descriptionWilfred Hughes-1/+1
2024-04-29Auto merge of #17144 - cbiffle:patch-1, r=Veykrilbors-2/+0
manual: remove suggestion of rust-project.json example The manual has been linking to the repo https://github.com/rust-analyzer/rust-project.json-example/tree/master This repo does not contain a rust-project.json, does not appear to have _ever_ contained a rust-project.json, and my bug report about this has gone untouched: https://github.com/rust-analyzer/rust-project.json-example/issues/4 Since I can't figure out an example, this commit removes the link pending better documentation.
2024-04-28Don't retry position relient requests and version resolve dataLukas Wirth-1/+1