-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Support relative paths as links in output #167211
Comments
@bpasero is the support for absolute paths only restricted to Linux? As you can see from my screenshots above, same VS Code versions and same Wallaby extension version; but the first screenshot shows that the links are clickable (one of the Wallaby extension maintainer sent that to me) while the screenshot below it have unclickable links. The maintainer took the screenshot from his Mac, while I took mine from my Linux. |
Any platform. Here is the code that creates the patterns for link detection and the workspace roots are taken as input: vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.ts Lines 31 to 44 in 9908b3d
|
Any clue as to why the same extension, same version, will behave differently? His output window is clickable (as evident in the screenshot above); while I have a different experience. Will tagging him here help? |
Yes - via the |
Ah yeah thanks, I had forgotten about that API. So it is possible that there is a bug in the extension that only surfaces on some operating systems. |
I'm from the Wallaby team. We had helped @damms005 triage his issue, and yes, we use the the DocumentLinkProvider API. @damms005 told us the issue affected all extensions with links, not just ours. |
Can you produce a minimal sample in a hello world extension for us to reproduce? |
@bpasero I am unsure if that request is directed at @smcenlly or myself. However, a hello world extension is not required to reproduce this, IMO. Only two conditions need to be met to reproduce this issue:
|
From core (without extensions) we only detect and show a link if the path is:
|
Only on Linux or across platforms? If across all platforms, what explains the different behaviour on Linux systems? |
This is platform independent. I cannot explain platform inconsistencies, but if there is a small sample to play with, I am happy to try. |
Perhaps I'm unable to communicate this very well, or you choose to not understand the problem. Either ways, I do not see the current direction this is headed as yielding any result. Thanks for your efforts anyways. |
For anyone that stumbled on this, the issue was having |
@bpasero The description for the link says 'Controls whether the editor should detect links and make them clickable' Since this only affects the Output Window, perhaps the description should be updated to reflect same. It will be helpful in debugging like in my case |
Does this issue occur when all extensions are disabled?: Yes/No (Not applicable. An extension that logs paths/url to the Output window is required to reproduce the issue)
Steps to Reproduce:
Expected outcome:
Actual outcome (bug)
The text was updated successfully, but these errors were encountered: