Skip to content

馃拕 Include file system path in debug mode's URI/link hovers - #165709

Merged
roblourens merged 4 commits into
microsoft: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 into
microsoft:mainfrom
babakks:reveal-file-paths-in-hover

Conversation

@babakks

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
@roblourens

Copy link
Copy Markdown
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.

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
@babakks

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Member

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

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
@babakks

Copy link
Copy Markdown
Contributor Author

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

@roblourens roblourens left a comment

Copy link
Copy Markdown
Member

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
Babak K. Shandiz (babakks) deleted the reveal-file-paths-in-hover branch November 9, 2022 17:59
@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