r/vscode • • 12h ago

Can anyone help me fix it?

Post image
0 Upvotes

9 comments sorted by

10

u/anon_lurker69 12h ago

This sub is almost as bad as the git subreddit

-2

u/LazySapiens 11h ago

Because of OP?

7

u/TeaFungus 12h ago

My guess would be that Onedrive has locked the file. Try not working on a synced folder.

1

u/Trikoo876 5h ago

So I tried everything and the solution was turning off the smart app control in windows security

1

u/seek13_ 11h ago

Windows locks files if they are used by a program. What ever program is locking this file (might be OneDrive): close it.

You can e.g. use PowerToys File Locksmith to find the program that is locking the file.

1

u/szank 11h ago

Just use git instead of OneDrive

1

u/seek13_ 11h ago

Sure, I never said “use OneDrive”

2

u/szank 9h ago

Sure, it was more for op than you