Skip to content

Do not create document links with zero length range#1761

Merged
angelozerr merged 1 commit into
eclipse-lemminx:mainfrom
datho7561:1110-document-link-range
Nov 4, 2025
Merged

Do not create document links with zero length range#1761
angelozerr merged 1 commit into
eclipse-lemminx:mainfrom
datho7561:1110-document-link-range

Conversation

@datho7561

Copy link
Copy Markdown
Contributor

Ultimately, a zero length document link doesn't make sense. VS Code throws an error when attempting to consume a zero length document link.

To test this change, try the reproducer example that I added in the linked issue.

Fixes redhat-developer/vscode-xml#1110

@datho7561
datho7561 requested a review from angelozerr November 3, 2025 21:48
@datho7561
datho7561 force-pushed the 1110-document-link-range branch from 5832cb6 to d229805 Compare November 4, 2025 14:54
@datho7561
datho7561 force-pushed the 1110-document-link-range branch from d229805 to 29a2795 Compare November 4, 2025 15:59
Ultimately, a zero length document link doesn't make sense.
VS Code throws an error when attempting to consume a zero length
document link.

To test this change, try the reproducer example that I added in the linked issue.

Fixes redhat-developer/vscode-xml#1110

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561
datho7561 force-pushed the 1110-document-link-range branch from 29a2795 to eecac25 Compare November 4, 2025 16:00
@datho7561
datho7561 requested a review from angelozerr November 4, 2025 16:00
@angelozerr
angelozerr merged commit f3ed35f into eclipse-lemminx:main Nov 4, 2025
4 of 6 checks passed
@angelozerr angelozerr added the bug Something isn't working label Nov 4, 2025
@angelozerr angelozerr added this to the 0.31.1 milestone Nov 4, 2025
@angelozerr

Copy link
Copy Markdown
Contributor

Thanks @datho7561 !

@datho7561
datho7561 deleted the 1110-document-link-range branch November 4, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: Illegal argument: range

2 participants