Skip to content

💄 Include file system path in debug mode's URI/link hovers#165709

Merged
roblourens merged 4 commits intomicrosoft:mainfrom
babakks:reveal-file-paths-in-hover
Nov 9, 2022
Merged

💄 Include file system path in debug mode's URI/link hovers#165709
roblourens merged 4 commits intomicrosoft:mainfrom
babakks:reveal-file-paths-in-hover

Conversation

@babakks
Copy link
Contributor

@babakks babakks commented Nov 7, 2022

Fixes #164486

With this PR, only file system URIs (i.e., URIs with file:// scheme or no scheme at all) are also included in the hover box content:

With file path in hover

Note that the current behavior is kept for other URI schemes (e.g., http/https):

Without file path in hover

@roblourens
Copy link
Member

Thanks, good start. But I think the behavior for http URIs should match, and also, I'm wondering whether it should actually include the full value of the variable, not just the link target. For example, you could have "/foo/bar more text" and more text would not be part of the link, but still cut off.

@babakks
Copy link
Contributor Author

babakks commented Nov 8, 2022

I've updated the PR. Now it displays the full text:
hover-2

But, it also includes the full text in the links detected inside the debug console. Is that okay? See this:

hover

@roblourens
Copy link
Member

Thanks, I like that. But no, this should only be enabled for the debug views

@babakks
Copy link
Contributor Author

babakks commented Nov 9, 2022

Changed it. Now it only works for the debug view expressions.

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks!

@roblourens roblourens merged commit b7237d8 into microsoft:main Nov 9, 2022
@babakks babakks deleted the reveal-file-paths-in-hover branch November 9, 2022 17:59
@aeschli aeschli added this to the November 2022 milestone Dec 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show full string when hovering string paths in debugger variables tab

3 participants