Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Hover markdown is not syntax highlighted #283

Closed
alexheretic opened this issue May 11, 2020 · 0 comments
Closed

Hover markdown is not syntax highlighted #283

alexheretic opened this issue May 11, 2020 · 0 comments

Comments

@alexheretic
Copy link
Contributor

rust-analyzer language server sends markdown hover text. This is displayed but not syntax highlighted.

Example

If I take a empty rust project with the following main.rs code:

fn main() {
    let _foo = vec!["hello", "world"];
}

When I hover on _foo the language server provides the following textDocument/hover response

{
  "contents": {
    "kind": "markdown",
    "value": "```rust\nVec<&str>\n```"
  },
  "range": {
    "end": {
      "character": 12,
      "line": 1
    },
    "start": {
      "character": 8,
      "line": 1
    }
  }
}

The markdown is asking for rust highlighting but not getting it

Downstream: rust-lang/atom-ide-rust#158

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant