[lsp] Fix parsing of relay style locations in locateCommand results#3891
[lsp] Fix parsing of relay style locations in locateCommand results#3891dimaMachina merged 1 commit intographql:mainfrom
Conversation
|
|
|
|
This looks right to me. Thanks for opening the PR @hayes! I opened #3895 before I saw this one. I've closed it in favor of this one which also fixed the 1 based indexing, but I'll copy some of the description from mine:
Screen.Recording.2025-04-25.at.9.25.20.AM.mov |
|
I can also confirm that |
Currently
locateCommandis described as accepting "relay style" locations, which are interpreted asuri:startLine:endLine.Relay actually uses
uri:line:columnwhich aligns with with how locations are represented in stack traces.The values are also being interpreted as 0 indexed, when I believe they are actually 1 index in relay and stack traces