vscode-pull-request-azdo icon indicating copy to clipboard operation
vscode-pull-request-azdo copied to clipboard

Error adding comment: The value 0 is outside of the allowed range

Open RobDover opened this issue 4 months ago • 6 comments

  • Extension version: 0.2.2
  • VSCode Version: 1.86.2
  • OS: Windows_NT x64 10.0.22621

Steps to Reproduce:

  1. Installed the Azure Devops Pull Request Extension
  2. Filled in the settings required to connect me to my ADO project
  3. Opened a PR and tried to leave a comment

I see the following error message pop up:

Creating comment failed: Error: The value 0 is outside of the allowed range. Parameter name: RightFileStart.Offset
Actual value was 0.

image

I've tried a few different things to see if there are some cases where it does work and others where it doesn't, but it seems pretty consistent:

  • Have tried multiple different files in the same PR
  • Have tried a different PR
  • Have tried leaving comments on both the before and after changes
  • Have tried short and long files

Unclear exactly what's causing this, but it would be great to have this resolved! I think this extension is a great idea and would like to evangelise it across my org. Don't feel I can do that if I can't get it to work locally though :(.

RobDover avatar Feb 23 '24 16:02 RobDover