Skip to content

Copy Path feature returns string with Path Seperator for windows on Linux SSH only for staged files. #303207

@mahesh-attarde

Description

@mahesh-attarde

Version: 1.111.0 (user setup)
Commit: ce099c1
Date: 2026-03-06T23:06:10Z
Electron: 39.6.0
ElectronBuildId: 13330601
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26100

Steps to Reproduce:

  1. In Remote SSH on linux, Open repo, change some file, stage it, If you open staged file, now shift+alt+c or Copy path from right click.
  2. Clipboard contains path of file with "\path\to\file"
  3. Now instead of directly opening staged file, click on OpenFile for staged element. now shift+alt+c or Copy path from right click.
  4. Clipboard contains path of file with "/path/to/file"

No extra git extension is added.

I believe path should be same whether file is staged or not.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions