Stream: t-compiler/wg-rls-2.0

Topic: Enter key in VS Code


Dirkjan Ochtman (Apr 20 2020 at 12:02, on Zulip):

So with issues like #4052, why does this happen? Why is RA blocking Enter keys from following through to the editor?

Dirkjan Ochtman (Apr 20 2020 at 12:03, on Zulip):

I'm experiencing the same thing today with this week's build and have encountered it in the past as well (for example #3782)

Dirkjan Ochtman (Apr 20 2020 at 12:04, on Zulip):

and it is incredibly frustrating

bjorn3 (Apr 20 2020 at 12:09, on Zulip):

Rust analyzer tries to for example insert /// after pressing enter inside a doc comment.

bjorn3 (Apr 20 2020 at 12:12, on Zulip):

https://github.com/rust-analyzer/rust-analyzer/blob/bddf6b5266997dd7e017fcb963e54a86b68afbaa/crates/ra_ide/src/typing/on_enter.rs#L16

bjorn3 (Apr 20 2020 at 12:16, on Zulip):

You should be able to disable the keybinding in Preferences: Open Keyboard Shortcuts. The binding is called rust-analyzer.onEnter. You need to right click to remove it.

Dirkjan Ochtman (Apr 20 2020 at 12:38, on Zulip):

alright then

Dirkjan Ochtman (Apr 20 2020 at 12:38, on Zulip):

thanks

Last update: May 29 2020 at 17:50UTC