Stream: t-compiler/wg-rls-2.0

Topic: bug?: enter to continue doc comments


Cole Lawrence (May 09 2020 at 20:45, on Zulip):

I feel like continuing doc comments with enter used to work. Did something change? It seems like this issue is talking about a similar problem https://github.com/rust-analyzer/rust-analyzer/issues/4052

Jonas Schievink (May 09 2020 at 20:46, on Zulip):

It was disabled by default

Cole Lawrence (May 09 2020 at 20:46, on Zulip):

How do I enable it?

Jonas Schievink (May 09 2020 at 20:48, on Zulip):

Copy this into your keybindings:

    {
        "key": "Enter",
        "command": "rust-analyzer.onEnter",
        "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust"
    }
Cole Lawrence (May 09 2020 at 20:49, on Zulip):

@Jonas Schievink Wow! Thank you so much

Jonas Schievink (May 09 2020 at 20:49, on Zulip):

No problem!

Laurențiu Nicola (May 10 2020 at 07:23, on Zulip):

Unless you're using the Vim extension, then you need https://github.com/rust-analyzer/rust-analyzer/issues/4214#issue-609481879

Last update: Sep 30 2020 at 16:30UTC