Skip to content

Detect moved and refactored code across files #90

@T3sT3ro

Description

@T3sT3ro

Is your feature request related to a problem? Please describe.
It often happens that a refactoring takes place, where a file is broken into parts or we move several related classes to one file. It often also includes small refactoring of the code itself. Currently no git tool can help with that case, and all of them show changes as "deleted files X Y Z, added files A B C". This makes the PR review process terribly difficult when aside from split code there are also semantic changes underneath.

Describe the solution you'd like
It would be nice if files were just anther abstraction above the AST and semantic diff could also show moves and refactors of code between different files.

Describe alternatives you've considered
I am using difftastic tool and I had some success by running git diff <baseBranch>:<masterFileA> <refactorBranch>:<splitPartA> for all paths that I know changed and moved, but when reviewing someone else's code I usually don't.

Additional context
It would be usefull to show semantic diff for a whole PR across many files as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestvscodeThe issue is related to our VS Code extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions