-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
ANSI OSC 8 hyperlink support NOT working properly (#155445) #170963
Comments
Upstream: xtermjs/xterm.js#4916 |
I'm using Windows 10 Pro latest build, same for VsCode. As cited in the bug, wt.exe works properly, but code.exe console in each of its variants does not.It might be perhaps notable that for both wt.exe and code.exe embedded consoles all variants, I'm using CMD.exe shell as powershell has special console integration that makes it unsuitable as a sole test case.I can produce YouTube video and/environment captures of system setup as required.Thank you!DavidOn Feb 28, 2024 2:44 PM, "Marcos H. Valdez III" ***@***.***> wrote:
I was going to request this be assigned to me but I can't duplicate it.
VS Code 1.87
Windows 11 Pro (Version 10.0.22631 Build 22631)
All extensions disabled
Running the provided code from the VS Code PowerShell terminal results in the correct behavior from both works_vc AND fails_vc (if you add a '=' between fails_vsc and the string).
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Upstream fix: xtermjs/xterm.js#5027 |
Looking forward to that Tyriar. If the |
With pwsh and cmd on Windows Terminal, it seems to me that only the |
This bug has been fixed in the latest release of VS Code Insiders! @smallscript, you can help us out by commenting If things still don't seem right, please ensure you're on version 6d23b7f of Insiders (today's or later - you can use Happy Coding! |
It's a bit more involved. the OSC-8 feature has worked for a long time on win10 and Win11 with wt.exe.The xterm.js in VsCode supports OSC-8 properly on Windows 11, but on Windows 10 it just shows the label text but it is not a clickable link. For reference, that's the case with the latest version of VsCode (same version on win10 and win11) using the latest releases/updates to patch Tuesday win10 PRO and win 11 PRO.I'm guessing it's an electron issue in relation to Windows ConPTY.On Apr 24, 2024 1:07 PM, Raymond Zhao ***@***.***> wrote:
With pwsh and cmd on Windows Terminal, it seems to me that only the http://example.com portion is underlined.
On VS Code, http://example.com\x1B\\ctrl-click-here\x1B is underlined.
I'd like to check whether either behaviour is as expected for you, @smallscript?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I should also add, it's the same kind of issue with flushing the back buffer when using the "CLS" cmd not clearing the back buffer on Windows 10.On Apr 24, 2024 4:39 PM, ***@***.*** wrote:It's a bit more involved. the OSC-8 feature has worked for a long time on win10 and Win11 with wt.exe.The xterm.js in VsCode supports OSC-8 properly on Windows 11, but on Windows 10 it just shows the label text but it is not a clickable link. For reference, that's the case with the latest version of VsCode (same version on win10 and win11) using the latest releases/updates to patch Tuesday win10 PRO and win 11 PRO.I'm guessing it's an electron issue in relation to Windows ConPTY.On Apr 24, 2024 1:07 PM, Raymond Zhao ***@***.***> wrote:
With pwsh and cmd on Windows Terminal, it seems to me that only the http://example.com portion is underlined.
On VS Code, http://example.com\x1B\\ctrl-click-here\x1B is underlined.
I'd like to check whether either behaviour is as expected for you, @smallscript?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I'll clarify my question. Has your original issue, #170963 (comment), been resolved on VS Code Insiders? You can get a copy of VS Code Insiders from https://code.visualstudio.com/insiders/. As for the back buffer issue, feel free to open a new issue in this repository. |
apologies for misunderstanding. I'll check that today. FYI, my time zone is Hawaii so it will be late today. Mahalo,DavidOn Apr 25, 2024 7:26 AM, Raymond Zhao ***@***.***> wrote:
I'll clarify my question. Has your original issue, #170963 (comment), been resolved on VS Code Insiders? You can get a copy of VS Code Insiders from https://code.visualstudio.com/insiders/.
As for the back buffer issue, feel free to open a new issue in this repository.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I've now been able to test with that version.Whatever the issue is on Windows 10, that did not resolve it. I'm happy to dig deeper, but I world need a little advice on what logs to look at. Mahalo,DavidOn Apr 25, 2024 9:30 AM, ***@***.*** wrote:apologies for misunderstanding. I'll check that today. FYI, my time zone is Hawaii so it will be late today. Mahalo,DavidOn Apr 25, 2024 7:26 AM, Raymond Zhao ***@***.***> wrote:
I'll clarify my question. Has your original issue, #170963 (comment), been resolved on VS Code Insiders? You can get a copy of VS Code Insiders from https://code.visualstudio.com/insiders/.
As for the back buffer issue, feel free to open a new issue in this repository.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@smallscript it's likely a Windows 10 problem caused by conpty which is shipped by Windows then. Unfortunately the fix there is to upgrade to Windows 11 which has the newer component. |
Does this issue occur when all extensions are disabled?: Yes
In reference to Support OSC 8 hyperlink support #155445.
Per this gist spec it works properly in wt.exe but not in VsCode.
After about 6 hours of experimentation (in various MS-Windows based terminals) to understand why it was not working, I figured out the bug in VsCode.
In the example steps below I provide two forms
; ;
.The example shows the trigger/change to make it sort-of work in VsCode.
You will notice that when made to sort-of work in VsCode the ENTIRE line from start to end including the prompt becomes the link, which is wrong. It is a very quirky and touchy bug behavior.
Steps to Reproduce: (these steps worked 100%, other variations required pre-conditions)
; ;
we can get VsCode to work (incorrectly) as opposed to not-at-all.The text was updated successfully, but these errors were encountered: