-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Terminal link detection issues #21125
Comments
Upstream issue xtermjs/xterm.js#583 |
Another case from #21361:
|
Another case from #31460:
|
I also face an issue with links that contain spaces: # works
/path/to/file.yml
# does not work and I don't expect it to
/path/to/file with spaces.yml
# does not work, but it'd be great if it worked
/path/to/file\ with\ spaces.yml
# does not work too
/path/to/file%20with%20spaces.yml After trying various combinations of backslashes, quotes etc., I could not find any means to make a path that contains spaces highlightable and clickable. This would be useful in linting reports. UPD: Actually, supporting The parser can find |
Similarly, |
@ApeChimp that should work? |
That does work. I think it must have something to do with how the program that is outputting my url outputs it then. I'll see if I can isolate it. |
I'm seeing this issue after updating to 1.27.1 Specifically relative file paths beginning with a I've tried running |
@Hbbb that's another issue that is fixed in 1.27.2 |
Currently links on Windows don't work when the opened folder (initial cwd) has a space in the path because this regex pulls the section before the first space (#59052): This doesn't appear to be easily to fix so deferring until xtermjs/xterm.js#583 |
I also have this issue with paths that wrap on 2 lines when using vertical terminal layout. |
Another issue: #66182
|
Case from #66391: |
#90336 just got merged which fixes the majority of web/protocol related links as it uses the same link detector as the editor. To turn on this new feature (in tomorrow's Insiders) you can set this in settings: "terminal.integrated.experimentalLinkProvider": true Note that while more web cases will be covered, using this setting will break all local file link detection currently. The plan is to keep this issue open until the functionality gap is closed and provider-based is the new default. |
Ok scratch that, after merging in #95072, functionality should be just as good as with the old system. Here's a demo of what you get, notice the trailing |
Lots of work has happened in this area recently. In stable you can turn on the new "link provider" based links in the terminal that will fix a lot of these problems, and should cover all the ones in the original issue comment as the terminal now leverages monaco's detection for web/file protocol links. I'm going to call this finished with #96266 If there is still support missing, feel free to file issues on them, but note that for more obscure links it will soon be possible to detect links within extensions so I may close it in favor of that. See #91290 for the API proposal (I'll be updating that issue soon). |
To verifier: Test the links in the original comment. |
Testing #21021
linkComputer.test.ts
contains a set of tests used for editor link detection. Some links that do not get fully detected in the terminal. Some do get detected, but partially or contain trailing periods, etc:The text was updated successfully, but these errors were encountered: