Are you able to detect moving of lines across files? #81
Replies: 1 comment
-
SemanticDiff can currently only detect moves within a file. VS Code does not really have a concept for diffs that span more than one file. Internally our extension only gets two paths passed that point into VS Code virtual filesystem. These two paths could represent anything, a file in a git commit, data fetched from an HTTP server etc. Based on this information we don't really know the intention of the user. Do they want to see a diff between two commits or just two files? I therefore don't see this coming for the VS Code extension anytime soon. For the GitHub App the situation is different. Here we know exactly what the user wants to compare. We haven't implemented this feature yet because it would result in longer load times for public repositories that don't have our GitHub App installed. When a user opens a pull request, all files would have to be analyzed before we could show you the diff for the first file. However, for repositories that have our GitHub App installed, we already compute the diff in advance and not on-demand. If we implement such a feature, it will probably be limited to repositories that have the App installed. We don't have a timeline for this feature yet, though. |
Beta Was this translation helpful? Give feedback.
-
Say in Python. I have two files: a.py and b.py
I moved a function from a.py to b.py. Is this visible under the diff from this plugin?
Beta Was this translation helpful? Give feedback.
All reactions