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
I am unable to move or rename folders in the open folder from within Visual Studio Code, though I am able to move or rename files. It seems that Visual Studio Code itself holds these folders "open" in a way which prevents them from being changed, but only if the folder contains at least one file.
Reproduction
Open a project folder in Visual Studio Code from WSL (code-insiders .)
Create a folder within this folder. (Right-click in project tree, select "New Folder", give it a name.)
Try to rename this folder. (Right-click on newly-created folder, select "Rename", give it a new name.) This works.
Create a file within this newly-created/newly-renamed folder. (Right-click on folder, select "New File", give this new file a name, such as test-file.md.)
Try to rename the folder again. (Right-click on folder, select "Rename", give it a new name.)
Expected Behavior
The renamed folder should have the new name it was given.
Actual Behavior
The renamed folder reverts to its previous name. Any attempts to rename this folder using the bash command line, Windows Explorer, or any other tool results in a "Permission Denied" or similar access error. But, closing Visual Studio Code allows these other methods to work, strongly suggesting that it is Visual Studio Code itself or the "Remote - WSL" extension which is preventing Visual Studio Code (and others) from moving or renaming these folders.
Opening the same folder with Visual Studio Code locally (rather than using the remote WSL environment) does allow these same folders to be moved/renamed without issue, strongly suggesting that it is the "Remote - WSL" extension specifically which is holding these folders open.
Extension version: 0.36.0
VS Code version: Code - Insiders 1.35.0-insider (a69d0f8b218498e22b7c3a0f76926cc6322e6106, 2019-05-17T05:18:13.839Z)
OS version: Windows_NT x64 10.0.17134
Remote OS version: Linux x64 4.4.0-17134-Microsoft
System Info
Item
Value
CPUs
Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)
Issue Type: Bug
I am unable to move or rename folders in the open folder from within Visual Studio Code, though I am able to move or rename files. It seems that Visual Studio Code itself holds these folders "open" in a way which prevents them from being changed, but only if the folder contains at least one file.
Reproduction
code-insiders .
)test-file.md
.)Expected Behavior
The renamed folder should have the new name it was given.
Actual Behavior
The renamed folder reverts to its previous name. Any attempts to rename this folder using the
bash
command line, Windows Explorer, or any other tool results in a "Permission Denied" or similar access error. But, closing Visual Studio Code allows these other methods to work, strongly suggesting that it is Visual Studio Code itself or the "Remote - WSL" extension which is preventing Visual Studio Code (and others) from moving or renaming these folders.Opening the same folder with Visual Studio Code locally (rather than using the remote WSL environment) does allow these same folders to be moved/renamed without issue, strongly suggesting that it is the "Remote - WSL" extension specifically which is holding these folders open.
Extension version: 0.36.0
VS Code version: Code - Insiders 1.35.0-insider (a69d0f8b218498e22b7c3a0f76926cc6322e6106, 2019-05-17T05:18:13.839Z)
OS version: Windows_NT x64 10.0.17134
Remote OS version: Linux x64 4.4.0-17134-Microsoft
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
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: