microsoft / microsoft/vscode-remote-release

Git - Copied path of staged file includes backslashes

Open
#9,027 6 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug git help wanted
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Type: Bug

Steps to Reproduce:

  1. Open VSCode on Windows, and connect to a Remote host via SSH
  2. Use "Open Folder" for a folder outside of the user's home directory, containing a Git repository
  3. Make some changes to a file and run "git-add"
  4. Once the file is staged, open it in the editor from the Source Control plugin of VSCode
  5. Hover over the editor tab for this file, or do a "Copy Path"

Actual results: The path of the staged file includes backslashes, e.g., \path\to\file

Expected results: The path of the staged file includes "normal" slashed, e.g., /path/to/file

Extension version: 0.106.4
VS Code version: Code 1.82.1 (6509174151d557a81c9d0b5f8a5a1e9274db5585, 2023-09-08T08:45:05.575Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 4.18.0-477.15.1.el8_8.x86_64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.