rust-analyzer: Code: Postfix completions don't replace typed text
If you type 1.db and press Enter, you’ll get dbdbg!(1), as opposed to 1.cl where you get 1.clamp().
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (15 by maintainers)
Sure. I didn’t test 1.41.1 (it’s not out yet for me), but it’s probably working now. Thanks!
Yeah, just verified that it’s broken with 1.41 but “works” with 1.40. Works in quotes, because we do have specific work-arounds for this: https://github.com/rust-analyzer/rust-analyzer/blob/ee93fac7767d36ee91d5a0029bb58023765c72d5/crates/ra_lsp_server/src/conv.rs#L102-L114
Our policy is to support only the latest VS Code, so we should refactor the work-around so that it works with new code
Yes. And I am on 1.40
I can’t reproduce this issue, but I believe something has changed recently. I get a similar append/replace confusion for usual completion. I think this might be a client-side issue: I remmeber reading something about this in release-notes
EDIT: recently – around VS Code 1.38 or something