Skip to content

Support completion and for intra-doc links #8314

Open
@deontologician

Description

@deontologician

It would be nice to trigger the auto completion pane for identifiers after typing something like [` in a comment.

I tried fiddling with adding backtick to

https://github.com/rust-analyzer/rust-analyzer/blob/1ae20d2b894171f0b8368309da727cd365b95fc1/crates/rust-analyzer/src/caps.rs#L36

but (in vscode at least) it didn't seem to actually trigger the completion pane in a comment, though the backtick worked to force it to open elsewhere. From reading the lsp spec for that configuration, it looks like vscode is doing some detection of identifier characters already to try to decide when to bring up the pane, so maybe is also trying to be smart about not opening the pane inside a comment?

cc @Veykril (since you seem to be the intra-doc link person!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionE-hardS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions