-2

I am trying to setup a React project in my laptop , cloning from a repository. Using VS code . Any files changed or added is not displaying on the source control. However only when made some changes to package.json , it showed the file on source control with the commit button enabled. Otherwise any changes to any other files is not reflecting and the commit button is disabled. So far I have uninstalled and installed VS code. Re installed node , Git etc. Already have same setup in another laptop and working fine but need to move to this new laptop.

asked Mar 20, 2025 at 23:34

1 Answer 1

-2

Autosave needed to be enabled. File > Autosave.

answered Mar 21, 2025 at 8:09
Sign up to request clarification or add additional context in comments.

1 Comment

I think I see why you have some DVs here. Are you saying if you save the file manually it still doesn't update in the Git Changes window? But if you enable auto-save it suddenly shows up? (That's hard to believe...) I think the true answer is that you didn't realize the Git Changes does not update until the file is saved, and you weren't actually saving the file until something else happened, like attempting a build or something related to updating the package.json file. Autosave is another way to save the file. If that's what happened, then this answer, as written, is misleading.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.