Open snebjorn opened 3 years ago
Any known workaround?
@jaytonic While the renaming task is "stuck", bring up your command palette with ctrl + shift + p
and start typing restart
, you're looking for Angular: Restart Angular Language server
(it's the first hit for me). Press Enter
. The "stuck" renaming should complete immediately.
As a bonus: If you bring up the command palette again, you can click the little cog to the right of Angular: Restart Angular Language server
and bind it to a key.
This same issue applies to moving folders (but not files) within a workspace. The language service holds a lock on the folder.
Is there any progress on solving this issue. Seems like a really big issue to not simple rename folders without having to restart the service everytime.
I don't know how come this issue doesn't get more attention from the community. I've been experiencing it on a daily basis, and it's an absolute cancer having to struggle with such a basic operation as renaming something.
I have had this issue for the last 9 months at work. I kept thinking it was a file permissions issue and was struggling to find the reason why, not even IT could help me. I disabled the language service extension and it finally worked! Please angular team if you can fix this bug!
π bug report
Is this a regression?
I believe it is. I discovered this bug after ESLint in Angular officially became a thing. I don't know if it's related to ESLint or the language service was updated around that time.
Description
VSCode throws the following error when I try to rename a folder that have sub-folders with Angular files in them.
Disclaimer: Unless otherwise described I have disabled ALL VSCode extensions except for Angular Language Service.
Here I'm renaming the![Renaming folder with sub-folders](https://user-images.githubusercontent.com/1266245/120618581-81949b00-c45b-11eb-8e8d-245272574303.gif)
src
folder of a newly generated Angular project. Observe that it fails to rename the folder.Here I'm renaming the![Renaming leaf folder](https://user-images.githubusercontent.com/1266245/120620085-e7cded80-c45c-11eb-8b18-c29ebab5c88f.gif)
app
folder of a newly generated Angular project. Observe that it successfully renamed the folder.Here I'm renaming the![2021-06-03-11-18-50](https://user-images.githubusercontent.com/1266245/120620763-91ad7a00-c45d-11eb-9119-904fd68a9309.gif)
src
folder of a newly generated Angular project, but I have disabled the Angular Language Service. Observe that it successfully renamed the folder.Bug Type
What does this bug affect
Reproduction
Steps to reproduce the behavior:
ng new
ng add @angular-eslint/schematics
- I'm not sure this is necessarysrc
folderExpected behavior
The
src
folder should be successfully renamed.Logs
https://gist.github.com/snebjorn/3c38ebd5e47af01c8bcf7c78bc297e62
π Your Environment
Angular Version:
Extension Version:
VSCode Version:
Operating System: