rust-lang / rust-lang/rust-analyzer

Link formatting issue in message popup

Open
#17,222 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Found a minor bug related to the rust-analyzer popup showing when a project doesn't have a Cargo.toml file. See the screenshot below:

vscode-rust-analyzer-popup-bug

It looks like the message is expected to be rendered as Markdown (the linkedProjects link) but it's showing as plain text instead.

rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.3.1958-standalone (5bf2f85c8 2024-05-09)

rustc version: (eg. output of rustc -V)
rustc 1.77.2 (25ef9e3d8 2024-04-09)

editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
VS Code

relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)

repository link (if public, optional): (eg. rust-analyzer)

code snippet to reproduce:

// add your code here

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the VS Code rust-analyzer popup in a project without a Cargo.toml file and trace how the linkedProjects message is rendered. Check the popup's Markdown handling and verify that the link is displayed as a clickable Markdown link rather than plain text.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.