Sysmagine / SemanticDiff

Community support for SemanticDiff, the programming language aware diff for Visual Studio Code and GitHub.
https://semanticdiff.com
40 stars 0 forks source link

Files with multiple extensions seem to cause problems. #50

Open roddypratt opened 6 months ago

roddypratt commented 6 months ago

Using semanticdiff with file "myfile.json" works correctly, but with "my.file.json" I get an error message:

"This type of diff is not supported by SemanticDiff."

mmueller2012 commented 6 months ago

The error message is unrelated to the used programming language or file extension. When the SemanticDiff command is invoked, the extension tries to find the currently active editor tab and checks if it belongs to the VS Code diff viewer. If the extension cannot find the diff viewer, this error message is displayed.

My guess: Are you trying to use SemanticDiff with the merge view instead? We don't support 3-way comparison / merging yet.

roddypratt commented 6 months ago

Thanks. I'm just using it via the vscode git integration to view changes before commit. Screencapture video here. https://screenpal.com/watch/cZVXFqVJcmn

I created a simple file with a .foo.json extension, and that worked fine. It's just this 'other' file that seems to be a problem. Wierd!

mmueller2012 commented 6 months ago

This is really odd. I tried my best to reproduce it, but it works for me (see the video).

https://github.com/Sysmagine/SemanticDiff/assets/3102472/b6aeddb3-8055-4641-9d46-67ce578b83e5

I think we need some more information to narrow this down: