You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a VS Code workspace and save it as e.g. example.code-workspace.
Create a folder inside the git repo, a file inside that folder, and commit.
Create a new branch in the git repo, remove the file and folder, and commit.
Checkout the main branch, and add the folder to the code workspace.
Checkout the other branch.
Expected: the folder and file should be deleted.
Actual: the folder and file stick around, and any attempts to delete them, recreate them, or cd into them results in Permission denied.
Checkout the main branch.
Expected: the folder and file should be recreated without any issue.
Actual: git checkout fails with fatal: cannot create directory at 'folder': Permission denied
When I have git repositories that make use of code workspaces to organize subdirectories, these behavioral inconsistencies are very annoying. I end up having to close VS code, perform the checkout using Git Bash, and reopen VS Code.
VS Code version: Code 1.30.2 (61122f8, 2019-01-07T22:54:13.295Z)
OS version: Windows_NT x64 10.0.17134
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 x 3392)
This is not necessarily a duplicate of #41085. The issue is not that VS Code does not detect some change in the git branch. The problem is that VS Code somehow prevents git from modifying folders that are part of a code workspace. The issue articulated in #3025 and #41085 is different from this issue.
Issue Type: Bug
Steps to Reproduce:
Permission denied
.fatal: cannot create directory at 'folder': Permission denied
When I have git repositories that make use of code workspaces to organize subdirectories, these behavioral inconsistencies are very annoying. I end up having to close VS code, perform the checkout using Git Bash, and reopen VS Code.
VS Code version: Code 1.30.2 (61122f8, 2019-01-07T22:54:13.295Z)
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: unavailable_off
Extensions (13)
(6 theme extensions excluded)
The text was updated successfully, but these errors were encountered: