Closed MariaSolOs closed 1 year ago
For security reasons, we do not allow rendering arbitrary svgs in the editor. We allow rendering some svg badges inside of readmes, but do not allow them inside of hovers
Try switching to use a png for these badges instead
Type: Bug
Taken from the original issue in
rust-analyzer
.VS Code version: Code - Insiders 1.76.0-insider (c7930ca55d072608625ba76c13b5f9baaf9a2136, 2023-02-10T16:22:19.445Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: Yes
Several popular Rust crates include badges in their library descriptions (e.g.
quote
):These are used to display hover information. However, these show up as broken links when hovering over the path in VS Code:
Note that the Rust client is returning a valid MarkdownString which follows the CommonMark flavor for images. Below is another example of what the LSP hover result looks like.
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz (8 x 3492)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: unavailable_off
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|15.91GB (7.09GB free)| |Process Argv|--crash-reporter-id eb3e61bb-5a35-4917-94b7-be75ff95f116| |Screen Reader|no| |VM|0%|