Skip to content

Markdown support: issue with dragging folder into editor to create a link on Linux edition of VSCode #241007

@hurrellit

Description

@hurrellit

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

  • VS Code Version: 1.97.2 (latest)
  • OS Version: Ubuntu/Windows 10

Steps to Reproduce:

  1. Open an .md file
  2. Drag a folder from the left hand File Explorer and drop it into the editor while holding the SHIFT key down
  3. Using the Microsoft Windows version of VSCode this action will result in the creation of a markdown style relative link in the editor as expected, e.g.:
[text](../../../folder_name)
  1. Using the .deb file installed release of VSCode on Ubuntu Desktop or Linux Mint desktop, the same action results in the absolute path to the folder being pasted into the editor, e.g.:
/home/my_user/Documents/gitlab/doc/content/en/some/path/folder_name

I feel that the behaviour in the Linux distros is incorrect and is a bug and a markdown style link should be created instead.

I do not have any extensions installed in VSCode and all settings are in their default state (I have not changed any).

Note that I can drag an .md file or an image type file (.png, .jpg etc.) from a folder in the left hand explorer and drop it into the editor and on both Linux and Windows a markdown link will be created as expected with the relative path to the file - so I know the drag and drop facility is working as designed.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsiderslinuxIssues with VS Code on LinuxverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions