Skip to content

Conversation

@duncpro
Copy link
Contributor

@duncpro duncpro commented Oct 29, 2024

The vertical pipe character | is neither reserved nor unreserved under RFC 3986: Uniform Resource Identifiers and therefore it cannot appear within a URI.

However, linkComputer.ts does not list the vertical pipe character under FORCE_TERMINATION_CHARACTERS.

This makes VSCode's link-opening feature unusable in some circumstances since the vertical bar gets erroneously included in the URL, rendering it invalid. See #225513 for one example.

Note that this issue was reported earlier in #86358, and fixed improperly in this commit.

This pull request adds the vertical bar to the FORCE_TERMINATION_CHARACTERS, fixing the issue. It also reverts the change made in the other commit.

Testing

See the test case provided in #225513. After this commit VSCode behaves correctly.

Closes #225513

@mjbvz mjbvz assigned jrieken and alexdima and unassigned mjbvz Oct 29, 2024
@jrieken jrieken removed their assignment Oct 30, 2024
@duncpro
Copy link
Contributor Author

duncpro commented Nov 8, 2024

@alexdima Please take a look

Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you and apologies for the slow turn-around time!

@vs-code-engineering vs-code-engineering bot added this to the July 2025 milestone Jul 14, 2025
@alexdima alexdima merged commit 902041a into microsoft:main Jul 14, 2025
17 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cmd-Click doesn't work on JSDoc {@link URL|LinkText} format

5 participants