ankitbko / vscode-pull-request-azdo

Azure Devops Pull Requests for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ankitbko.vscode-pull-request-azdo
MIT License
65 stars 23 forks source link

Adding a comment in Azure Devops does not get updated in VSCode #42

Closed ShaniFelig closed 3 years ago

ShaniFelig commented 3 years ago

Steps to Reproduce:

  1. Open PR in VSCode with the extension
  2. Add comment on the PR in VSCode

You will see that even after refreshing the extension the comment that you added from Azure Devops will not appear in VSCode. Only after closing closing the PR completely and reopening it the new comment will appear

ankitbko commented 3 years ago

Are you adding the comment through Azure DevOps UI? Did you try refreshing the PR in VS Code?

ShaniFelig commented 3 years ago

Yes, I added a comment on Azure Devops UI and did not see in VSCode after refreshing the extension. Was able to resolve by reloading the window using CTRL+SHIFT+P --> reload window

ankitbko commented 3 years ago

So adding a comment on AzDO won't auto reflect on VS Code. This is because VS Code does not maintain an open socket connection to the AzDO. The list of comment is only fetched when PRs are loaded. You can right click on the PR and refresh it manually to see the comments. No need to reload the entire window.

ShaniFelig commented 3 years ago

Great, did not know that it is possible to refresh a PR. Thanks!