rust-analyzer/editors/code
A4-Tacks e8ee597340
Add config hide placeholders type hints
In the inferred type hints, expand the line too long. add config to disable it.

Example
---
```json
{"rust-analyzer.inlayHints.typeHints.hideInferredTypes": true}
```

```rust
use std::collections::HashMap;
fn foo(iter: Vec<Result<HashMap<String, String>, std::io::Error>>) {
    let output = iter.into_iter().collect::<Result<Vec<_>, _>>().unwrap();
}
```

**Before this PR**

```rust
let output: Vec<HashMap<String, String>> = iter.into_iter().collect::<Result<Vec<_ = HashMap<String, String>>, _ = Error>>().unwrap();
```

**After this PR**

```rust
let output: Vec<HashMap<String, String>> = iter.into_iter().collect::<Result<Vec<_>, _>>().unwrap();
```
2025-12-05 02:09:59 +08:00
..
src refactor: remove unused code 2025-11-21 22:12:08 +08:00
tests Update Node.js, vscode, and ts deps 2025-02-27 20:53:48 +01:00
.gitignore Add experimental VSCode api 2022-03-04 07:45:51 +02:00
.prettierignore prettier config 2022-05-17 18:12:49 +01:00
.vscodeignore editors/code: Add md for walkthrough setup example 2024-10-24 23:20:40 -04:00
eslint.config.mts Update Node.js, vscode, and ts deps 2025-02-27 20:53:48 +01:00
icon.png Optimize icon 2025-08-19 11:41:58 +02:00
language-configuration.json fix language-configuration.json 2025-04-04 00:26:57 +02:00
LICENSE Add LICENSE file to make vsce happy 2021-12-04 12:29:27 +02:00
package-lock.json Merge pull request #21055 from rust-lang/dependabot/npm_and_yarn/editors/code/js-yaml-3.14.2 2025-11-18 15:37:49 +00:00
package.json Add config hide placeholders type hints 2025-12-05 02:09:59 +08:00
prettier.config.mts Update Node.js, vscode, and ts deps 2025-02-27 20:53:48 +01:00
ra_syntax_tree.tmGrammar.json prettier run 2022-05-17 18:15:06 +01:00
README.md doc: Fix dead manual links 2025-04-20 20:28:52 +03:00
tsconfig.eslint.json Update Node.js, vscode, and ts deps 2025-02-27 20:53:48 +01:00
tsconfig.json Update Node.js, vscode, and ts deps 2025-02-27 20:53:48 +01:00
walkthrough-setup-tips.md add cargo's git checkouts to the list of paths to mark as read-only in vscode 2025-02-13 18:48:36 -08:00

rust-analyzer

This extension provides support for the Rust programming language. It is recommended over and replaces rust-lang.rust.

Features

Quick start

  1. Install rustup.
  2. Install the rust-analyzer extension.

Configuration

This extension provides configurations through VSCode's configuration settings. All configurations are under rust-analyzer.*.

See the manual for more information on VSCode specific configurations.

Communication

For usage and troubleshooting requests, please use the "IDEs and Editors" category of the Rust forum.

Documentation

See rust-analyzer.github.io for more information.