-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Debug console link detection issues #34026
Comments
@sandy081 I'm just trying to step through this code to understand why my links aren't being detected, but I'm really confused by this code: while (match !== null) {
let resource: uri = null;
if (!resource) {
match = pattern.exec(text);
continue;
} As far as I can tell, the rest of the code in this block will never execute - |
@isidorn Is anyone able to review the comments above? Am I misreading the code or is this a bug that means this will never work? :( |
@DanTup yes this seems like a clear bug on our end. Would you be interested in providing a PR which fixes this. |
@isidorn I haven't contributed any real code before, do I need to (and if so, are there instructions on how to) run Code from source? (I checked contributing.md but it doesn't seem to cover it). Also, are there automated tests around this sort of functionality I could extend? |
@DanTup https://github.com/Microsoft/vscode/wiki/How-to-Contribute @gregvanl our contributing.md should have a pointer to our wiki how to contribute page imho |
I did have this on my list to try and look at, but I never gotten around to it. I think it's unlikely to happen anytime soon so it may be better for someone else to look at. (I do a lot of people would benefit in fixing - many issues have been closed as dupes of this, though is in the backlog marked as debt, when the above is really a bug). |
@isidorn Coming back to this, I noticed fixing the detection won't work for us, as our links have been rewritten as URIs, like:
Was there any progress on allowing extensions to contribute rules for link detection? (I couldn't find anything) |
No porgress here |
FWIW, while setting up a repro using the mock debugger today, I noticed that OutputEvents can be given source locations (it didn't show in the completion until I cast it like So, I realised I could regex my paths out of the call stacks and just attach them to each line this way. Before (no links): After (links): As an advantage, this allows mapping the |
I notice that the link detection has changed in release 1.75.0 - and from my point of view the changes have made it worse. I frequently have links that look like |
Terminal link detection is not related to this, please file a separate issue @jribbens |
@roblourens What is this ticket about then? If it's about the debug console link detection, then my comment from April 2021 still stands - given a URL like |
It's about the debug console, but if I understand your comment correctly, you are saying that something in the terminal regressed? |
The debug console behaves the same as it has for a long time, in that for URLs of the form I mentioned (which I use a lot), it fails to include the final |
Yes, sharing link detection implementation would also be a good thing for us to get to. It would be helpful to file an issue for the terminal regression so that we can fix that. |
@roblourens Ok I've opened a separate issue #174009 |
@DanTup I also face this problem, but I didn't understand how you did. Could you please guide it in some detail? Many thanks |
@ngduchuan are you an extension author, or a Flutter user? If an extension author, you need to set the |
I still have issues with link detection (and specifically Ctrl Clicking the link) in vscode as well. For instance vscode does seem to detect the following link, and I'm able to Ctrl click it
But when prefixed with
Any thoughts? |
This is probably related to #150702. VS Code doesn't handle |
Yes, especially since the first one (on the call stack) has a "correct" url, but ends up deep in the nodejs library. The actual link that would make sense for me to focus on would be the second one. And that one cannot be clicked. Not ideal 😉 |
Have there been changes around this? In the latest release notes I see:
But I can't find any issue or PR related to this. I'm specifically interested in what "line and column number extensions" mean. Is |
In the release notes, that is specifically for the terminal. No progress in the debug console, unfortunately. |
@roblourens do you know where the Issue/PR for the change that was made is? I'm just about the specifics of it because I'd opened some issues like #150702 (which I think might be a terminal now?) with issues in this area, but it's not clear if this fix helps (the suggestion was that colons on a |
Also consider a way for extensions to contribute link detection rules
The text was updated successfully, but these errors were encountered: