microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.99k stars 29.53k forks source link

Make git SCM provider aware of terminal operations #157740

Open joyceerhl opened 2 years ago

joyceerhl commented 2 years ago
  1. Start drafting a commit in the SCM input box
  2. Finish committing from the terminal
  3. :bug: the SCM view doesn't know the commit has already happened and displays the stale tracked changes until explicitly refreshed

It would be great if the SCM view could use terminal shell integration to figure out that a commit has already happened and trigger a refresh in this scenario.

Tyriar commented 2 years ago

Should be easy to accomplish after https://github.com/microsoft/vscode/issues/145234 is done. You will be able to subscribe to certain commands and just refresh after git*, hub*, etc. happens