rust-lang / rust-lang/rust-analyzer

"Save without Analyzing" command

Open
#14,491 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-vscode C-feature
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Visual Studio Code (and other editors I imagine) has a "Save without Formatting" which is useful in cases when you want to save a file without applying code formatting.

I've often found myself wanting to save a file without having Rust analyzer rerun its checks. This can be because I've only edited a comment (as in #12752) or more often because I am editing a build script and I would rather run it in my external terminal (where I can get better output) than let Rust Analyzer run it and fail.

Hence I think a "Save without Analyzing" command would be a really nice addition.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the existing save and formatting command handling in rust-analyzer, then determine how a command can save without triggering analysis; done means the command is available and saving through it does not rerun Rust Analyzer checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.