SemanticDiff
SemanticDiff copied to clipboard
Files with multiple extensions seem to cause problems.
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."
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.
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!
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:
-
Does it work if you manually invoke the command when the diff view is open (press CTRL + SHIFT + P, search for "Switch to SemanticDiff" and press enter)?
-
What version of VS Code do you use (just copy the information in Help -> About)?
-
Do you have any other extensions installed that are related to this file format or diffs in general?