Onedrive lock files when using VS code

Fu, Xing 1 Reputation point

I am working on a html file which is synchronized by onedrive.
However it is locked and not able to be saved.

onedrive status: processing changes & this file is uploaded
file status in file explore: two blue cycle arrows.

Seems like that onedrive finished upload but did not unlock the file. Might be some conflict with VS code way of opening files

This happened everyday.

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,111 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ceasar Chen_MSFT 4,391 Reputation points

    Hi, @Fu, Xing
    You can try the following methods:

    1. Mark the file as 'Always on this device'
    2. End the onedrive sync process using windows Task Manager, after which you turn oneDrive back on and sync.
    3. Reset the OneDrive reset-onedrive

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.