Microsoft/vscode
View on GitHubMarkdown Image Hover Preview broken for file paths exceeding 259
Open
#261880 opened on Aug 15, 2025
bughelp wanted
Description
Type: Bug
While editing a markdown file, hovering the cursor over the link to an image should popup a preview of the image. However, if the path to the image exceeds 259 characters the preview does not appear in the popup, and instead displays the broken image link icon. The markdown preview window renders the image regardless of path length.
Steps to reproduce
- Create a markdown file and open in the VSCode editor.
- Insert a link to an image file where the path is over 259 characters.
- Hover your curser over the link, and the broken link icon appears (see first image below).
- Open the markdown preview pane and note that the image is displayed as expected (see first image below).
- shorten the path of the source image to be 259 characters or less.
- Hover your curser over the link, and image preview appears as expected (see second image below).
VS Code version: Code - Insiders 1.104.0-insider (0ab18bd00955d2a3d69eb66d8eea982b76a53780, 2025-08-15T10:51:05.286Z) OS version: Windows_NT x64 10.0.26100 Modes:
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) Ultra 7 165H (22 x 3072) |
| GPU Status | 2d_canvas: enableddirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offtrees_in_viz: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 63.46GB (42.71GB free) |
| Process Argv | --crash-reporter-id 95cb8fae-2bdd-4240-a0e6-b694852bf1a4 |
| Screen Reader | no |
| VM | 0% |
vsliv368cf:30146710
pythonvspyt551cf:31249598
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythoneinst12:31251391
6gi0g917:31259950
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
747dc170:31275146
pythonpcpt1cf:31345881
6518g693:31302842
9d2cg352:31346308
b99bg931:31349649
usemarketplace:31343026
0g1h6703:31329154
nes-emitfast-1:31333560
replacestringexc:31350595
6abeh943:31336334
envsactivate1:31349248
0927b901:31340060
nb18600_tf:31359574
j8ce-both:31345957
editstats-enabled:31346256
gendocstringf:31358905
asdad-cf:31365767
pylancealldocst:31362265
gemagent1:31368469
cloudbuttont:31366566
todos-0:31366869
v2-prompt:31368460
search_len1:31367733