We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: rust-analyzer version: 0.3.1591-standalone
rust-analyzer version: 0.3.1591-standalone
rustc version: rustc 1.70.0 (90c541806 2023-05-31)
rustc 1.70.0 (90c541806 2023-05-31)
relevant settings: Not special settings or configuration.
I'm writing rust in vscode and when I have a match that I want RA to fill, RA put the code at the wrong place.
rust
vscode
match
I've the following sample code:
#[wasm_bindgen] pub fn hello_world() { let value: Result<bool, ()> = Ok(true); match value {} }
When I place my cursor on value on the line match value ... and execute the quick action Fill match arms it result in the following code:
value
match value ...
Fill match arms
{ Ok(_) => todo!(), Err(_) => todo!(), } pub fn hello_world() { let value: Result<bool, ()> = Ok(true); match value {} }
What I see:
match value
#[wasm_bindgen]
That behavior doesn't exist if I remove #[wasm_bindgen] or replace it with #[test].
#[test]
The text was updated successfully, but these errors were encountered:
add_missing_match_arms
f6bffa4
Successfully merging a pull request may close this issue.
Version
rust-analyzer version:
rust-analyzer version: 0.3.1591-standalone
rustc version:
rustc 1.70.0 (90c541806 2023-05-31)
relevant settings: Not special settings or configuration.
Description
I'm writing
rust
invscode
and when I have amatch
that I want RA to fill, RA put the code at the wrong place.I've the following sample code:
When I place my cursor on
value
on the linematch value ...
and execute the quick actionFill match arms
it result in the following code:What I see:
match value
arms aren't filled.#[wasm_bindgen]
was replaced by the completion of RA for the match arms.That behavior doesn't exist if I remove
#[wasm_bindgen]
or replace it with#[test]
.The text was updated successfully, but these errors were encountered: