Skip to content

The "Local image" preview fails to render on Windows when both files are in the same directory on: a \\ based network share; the root of a drive #48403

@jpluimers

Description

@jpluimers
  • VS Code version: Code 1.22.2 (3aeede7, 2018-04-12T16:38:45.278Z)
  • OS version: Windows_NT x64 10.0.16299

I tried:

  • searching through the existing open issues but could not find a matching one
  • specifying the issue below as specific as I could

Image preview test

Steps to reproduce:

  1. Download https://via.placeholder.com/350x150.png to a local directory
  2. Save this text in the same directory as test.md (see permutations below)
  3. Open test.md in Visual Studio Code 1.22 or higher (tested on Windows 10 Pro x64 or Mac High Sierra)
  4. Enable the markdown preview window

The "Local image" preview fails to render on Windows when both files are in the same directory on:

  • a \\ based network share
  • the root of a drive

The "Local image" preview succeeds on Windows when the files are on a regular drive letter in a subdirectory (even when the drive is pointing to a network share).

The "URL image" preview always succeeds (when there is an active internet connection)

URL image

URL image

Local image

Local image

The "Local image" fails when the files are stored at:

  • \\tsclient\tmp
  • \\tsclient\tmp\directory
  • \\localhost\c$\ProgramData\Temp
  • T:\ after a net use T: \\tsclient\tmp
  • C:\
  • a Mac

The "Local image" succeeds when the files are stored at:

  • C:\ProgramData\Temp
  • X:\ProgramData\Temp after a net use X: \\localhost\C$
  • T:\directory after a net use T: \\tsclient\tmp

Preview of failure

screenshot 2018-04-23 15 16 36

Does this issue occur when all extensions are disabled?: Yes

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz (2 x 2300)
Memory (System) 8.00GB (4.37GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 100%
Extensions (2)
Extension Author (truncated) Version
vscode-markdownlint Dav 0.14.1
markdown-all-in-one yzh 1.2.0

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesmarkdownMarkdown support issuesverification-foundIssue verification failed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions