Skip to content

Case change in a file name is not reflected in Copy Path #107446

@htwyford

Description

@htwyford

Issue Type: Bug

STR:

  1. Create a new file, e.g. testfile.js.
  2. Right click the new file in the Explorer sidebar and change the case of the file name, e.g. to testFile.js.
  3. Right click the file's tab and select Copy Path or Copy Relative Path.

Expected results:
~/.../testFile.js is copied to the clipboard.

Actual results:
~/.../testfile.js is copied to the clipboard.

Notes:

  • Right clicking the renamed file in the Explorer sidebar and selecting Copy Path/Copy Relative Path copies the correct filename, e.g. testFile.js
  • Non-case filename changes are reflected in Copy Path/Copy Relative Path. If you change testfile.js to testFile.js then to testFile2.js and then select Copy Path/Copy Relative Path from the file's tab, ~/.../testfile2.js is copied to the clipboard.
  • Closing the file's tab then reopening it does not fix the issue. Neither does closing the entire VS Code window. Neither does quitting VS Code (e.g. Cmd+Q on macOS).

VS Code version: Code 1.49.2 (e5e9e69, 2020-09-24T16:23:52.277Z)
OS version: Darwin x64 19.6.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2900)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 6, 4, 3
Memory (System) 32.00GB (5.51GB free)
Process Argv -psn_0_25335848 --crash-reporter-id 734dc7e4-ac54-4b30-b45e-1f8fffc27504
Screen Reader no
VM 0%
Extensions (16)
Extension Author (truncated) Version
project-manager ale 11.3.0
bracket-pair-colorizer-2 Coe 0.2.0
vscode-eslint dba 2.1.8
prettier-vscode esb 5.7.1
vscode-firefox-debug fir 2.9.1
restructuredtext lex 129.0.0
prettify-json moh 0.0.3
hg mrc 1.7.1
python ms- 2020.9.111407
cpptools ms- 1.0.1
idl myt 0.3.1
autotrim Nat 1.0.6
fluent-syntax-highlighting pau 0.0.1
rust rus 0.7.8
vscode-todo-highlight way 1.0.4
material-theme zhu 3.8.7

(1 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeededworkbench-editorsManaging of editor widgets in workbench window

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions