Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: fix handling of end of file in internal/span #41029
I think that, rather than changing the span package, we should do our best to work-around this in the cases where it comes up (so far, completion, and perhaps other features that insert edits like code actions). The work-around added in CL 249706 is not ideal because it is untested, so once we have support for completion in package declarations, we should see if we can improve and test it.