When using source control every change showes up as they should, but when I try to commit, push, pull etc nothing happens. This happens with both old and new projects. I have tried to reinstall the app without any luck. How can I fix this? Is there a way to "reset" source control?
Related
I used VS Code for angular and VS 2022 for the backend. I implemented the codes using VS 2022 for the backend and then closed VS 2022. Then I accidentally hit revert all changes in VS Code and caused the changes to be lost. Those changes are uncommitted and unstashed. Is there any way to recover those changes?
Tried AppData\Roaming\Code\Backups\a0bb9f3e4045ff1cafbc2c6c038fa8a9\file but nothing inside. Tried the recycle bin and nothing was there.
Check if your VSCode has the timeline view activated.
If yes, try and recreate an (empty) file that was discarded, and see if the timeline view shows any history: you would be able to get back its content from it.
However, that process does not scale well, as you would need to recreate every discarded file.
I forked tidythemes/blankslate to robertandrews/blankstrap.
I created new Issues for myself, for my own fork...
But, in VS Code, in the GitHub extension panel, I am instead seeing the Issues for the original blankslate...
I would like to be seeing my own Issues in VS Code.
Source Control Repositories shows...
Branch switcher shows...
Switching to another (ie. origin/master Remote) does not result in my Issues showing.
What must I do to get my own Issues visible?
Developer of the VS Code GitHub Issues extension suggests it may be a bug.
I am using visual studio code to develop my flutter app.
I need to share it with a colleague. I was able to make the transfer on gitlab very easily.
I have a problem.
When my colleague makes changes to my code, before "taking" his changes I would like to be able to view them on visual studio code.
I have tried several avenues, but each time my code is synchronized and modified according to the changes made
Can anyone help me?
1:Click Git icon on left side of VS Code
2:If you've made changes to the file(s) since last commit, you'll see the file(s) listed under "CHANGES"
3:Right click the file name (under "CHANGES") and click "Open Changes"
4:This will open the two versions of the file side by side with the changes highlighted
I believe this is how you see the changes that your college made on GitLab
How to undo vs code changes after closing the vs code and open again
I tried many time control z and control y to make change but it stucked.
What you are asking for is not possible.
However, there is another way to achieve the same result with some preparation: put your code in a git repository, and before making changes commit your work. Then if you find you want to roll back changes to a previous commit point, just use git checkout.
I've reinstalled my PC and tried connecting back up to my Azure DevOps Repo using VS Code and TFVC. I'm using TFVC Location with Visual Studio 2019 Community TF.exe. It all seems to work and I can connect to my repo with my credentials. It all seems to load up fine and I can even see TFVC with a number of changes/differences. - see image below. However I'm expecting to see my source control and list of files to commit like before. But the panel is blank. There's no errors in the Output window of VS Code either.
I've tried removing and re-adding the workspace. Tried editing/adding anew file to the project in hope of kickstarting TFVC pane to show the file list. - the number next to TFVC updates but I don't see any menu button or files list.
Has anyone else had this and know a solution, or know where I'm going wrong.
Just toggle "scm.alwaysShowProviders" on and off from whatever value your have (default is false), this would cause the source control pane to redraw and fix the issue for now.
I believe per the issues in GitHub that this issue is fixed for most people as of VSCode version 1.39.2, but I was still seeing it for projects based on a Git repo.
After some trial and error I found this setting was the culprit: "scm.alwaysShowProviders": true
When I remove that setting, or set it to false, my Source Control pane works correctly.
This happens to me occasionally. I just figured out I can fix this by right clicking in the blank area and then selecting the repository I want to show up
Issue opened on GitHub: https://github.com/microsoft/vscode/issues/82374
For now I've rolled back to the August update and that's resolved it.
Clicking the blank area and slecting repo does the trick
I had this problem on the 1.55 version, as it's centrally controlled I couldn't manually update, but when they pushed the 1.64 version through, the problem has gone away, was driving me mad!