Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

It's nearly impossible to tell where a file has moved from and to #1961

@jcansdale

Description

@jcansdale

Version

  • GitHub Extension for Visual Studio version: 2.5.6 (dev)
  • Visual Studio version: All

What happened

Steps to Reproduce

  1. Open a PR with moved file in PR details view (e.g. Refactor: Move views to GitHub.VisualStudio.UI #1955)
  2. Double click on a moved file

Expected behavior: [What you expect to happen]

Tooltip of diff tab shows source and destination of moved file.

Actual behavior: [What actually happens]

Tooltip shows destination path as both source and destination.
File appears as an added file in diff (all green on RHS).

Screenshot or GIF:

image

image

If I try to comment, I get position is invalid:
image

Here is the same file on dotcom for comparison:
image

Proposed Solution

  1. Fix tooltip and diff on diff view
  2. Show similar source and destination tooltop on tree view

Having just the destination on the tree view node isn't useful without a source to compare it with. I'd suggest simply showing [moved] on the node to avoid horizontal scrolling issues for minimal gain. Having the a source and destination as the tooltip would be very useful.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Medium Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions