Skip to content

Fix links sometimes not activating#5171

Merged
Tyriar merged 1 commit intoxtermjs:masterfrom
Tyriar:links
Sep 27, 2024
Merged

Fix links sometimes not activating#5171
Tyriar merged 1 commit intoxtermjs:masterfrom
Tyriar:links

Conversation

@Tyriar
Copy link
Copy Markdown
Member

@Tyriar Tyriar commented Sep 27, 2024

This was a very long standing bug that was hard to nail down a repro case. Turns out this was because at some point the current link can get cleared and re-evaluated, I think because of a different fix we made. That caused the object check to fail. So the fix there is to check link equality, not js object equality.

Additionally I found we don't dispose of old linkifiers when open is called multiple times.

See microsoft/vscode#230010

This was a very long standing bug that was hard to nail down a repro case. Turns
out this was because at some point the current link can get cleared and re-evaluated,
I think because of a different fix we made. That caused the object check to fail.
So the fix there is to check link equality, not js object equality.

Additionally I found we don't dispose of old linkifiers when open is called
multiple times.

See microsoft/vscode#230010
@Tyriar Tyriar added this to the 6.0.0 milestone Sep 27, 2024
@Tyriar Tyriar self-assigned this Sep 27, 2024
@Tyriar Tyriar enabled auto-merge September 27, 2024 19:59
@Tyriar Tyriar merged commit 9186c72 into xtermjs:master Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant