-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link provider underline draws 1 extra character when after wide characters #2887
Comments
@Tyriar https://drive.google.com/open?id=19M6FJwpbNzRuMbjHE3QeC9BN0mPHg7yi Rendering happens on xterm.js/src/browser/renderer/LinkRenderLayer.ts Lines 56 to 78 in f2ed019
xterm.js/src/browser/renderer/BaseRenderLayer.ts Lines 160 to 165 in 3a5def9
all of this happens using based on range created using xterm.js/addons/xterm-addon-web-links/src/WebLinkProvider.ts Lines 24 to 71 in 9817754
I would like to work on this further. Can you let me know how can I reproduce the issue on xterm.js to test rendering without modifying the regex to handle links like Also, I feel WebLink addon must detect links with a regex similar to the vscode terminal. |
Maybe the only way right now is to it within VS Code as described in #2818 (comment) as it pulls in a bunch of monaco code to do the link detection. I'm pretty sure the bug is in xterm.js though as everything else seems to work, just not to rendering part. Alternatively you could try use a custom link matcher which matches on these characters to see if it can trigger the bug in the renderers.
The link support in VS Code only works because it builds on a lot of code inside the editor, in an effort to keep the web links addon simple and avoid needing to attribute, I thought it best to keep it regex based as it was before. |
I'm guessing this is in xterm.js as it appears to be purely a rendering issue, the link works file and excludes the
]
:The text was updated successfully, but these errors were encountered: