Skip to content

Reference returns an invalid end positon

Under some circumstances, a reference returns an invalid end location (-1, -1). This happens if the last subreference has NULL_Location, for example if it is an auto generated constructor.

This causes some LSP requests to fail in vscode, resulting missing markers or broken outline.