rust-analyzer/editors/code
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
..
src Merge pull request #18722 from markmurphydev/status_bar_settings 2024-12-24 14:12:32 +00:00
tests Fix debug configuration querying not inheriting environment 2024-12-02 13:02:31 +01:00
.eslintignore vscode extension: use esbuild instead of rollup. 2021-08-10 10:18:08 +01:00
.eslintrc.js editor/code: Update typescript-eslint to v6 2023-07-13 22:44:29 +09: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
.prettierrc.js 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
icon.png Extension icon 2020-01-15 16:07:39 +01:00
language-configuration.json fix: support auto-closing for triple backticks 2024-04-11 18:46:22 +08:00
LICENSE Add LICENSE file to make vsce happy 2021-12-04 12:29:27 +02:00
package-lock.json editors/code: Change minimum VS Code from 1.78 to 1.83 2024-11-06 15:00:59 -08:00
package.json Allow excluding specific traits from completion 2025-01-01 13:49:35 +01:00
ra_syntax_tree.tmGrammar.json prettier run 2022-05-17 18:15:06 +01:00
README.md Improve extension description and README 2022-05-13 18:15:33 +02:00
tsconfig.eslint.json prettier run 2022-05-17 18:15:06 +01:00
tsconfig.json internal: Remove unnecessary Arc allocations in macro_expand 2024-01-03 15:21:18 +01:00
walkthrough-setup-tips.md editors/code: Add md for walkthrough setup example 2024-10-24 23:20:40 -04: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.