vscode
vscode copied to clipboard
Error: EPERM: operation not permitted, rename
Describe the bug
When enable vitest vscode extension, rename dirname is not permitted. This error always occurs on monorepos. When project is not monorepos, rename is ok.
System: Windows 11 23H2 VSCode Version: 1.89.0
Reproduction
-
git clone https://github.com/longshihui/vitest-extension-rename-test.git
- open the project and run
pnpm install
- disable all vscode's extensions and restart vscode (ensure all extensions is disabled)
- try rename
./packages/test-1
to./packages/test-3
- only enable vitest extension
- try rename
./packages/test-1
to./packages/test-3
- get error
https://github.com/vitest-dev/vscode/assets/17525817/ba7be853-5242-47a9-961a-b0521f3e6e22
Output
nothing.
Version
v0.10.7(latest)
Validations
- [X] Check that you are using the latest version of the extension
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.