Open GavIngram opened 2 years ago
It appears that the extension doesn't behave correctly with mapped network paths.
eg: (on windows) I have a network drive mapped to the letter Y: Y:\Folder1 should be mapped to Y:\Folder2 Rules in user settings as follows:
Y:\Folder1
Y:\Folder2
"diffdefault.rules": [ ["Y/Folder1", "Y/Folder2"] ]
opened.path resolves to: /Y:/Folder1/file.text prefix[0] resolves to: Y:\Folder1
/Y:/Folder1/file.text
Therefore the line: if (opened.path.startsWith(prefix0)) resolves to false and the extension doesn't launch the diff - even though it should.
if (opened.path.startsWith(prefix0))
false
thanks, seems we need a better way to resolve and replace the path
It appears that the extension doesn't behave correctly with mapped network paths.
eg: (on windows) I have a network drive mapped to the letter Y:
Y:\Folder1
should be mapped toY:\Folder2
Rules in user settings as follows:opened.path resolves to:
/Y:/Folder1/file.text
prefix[0] resolves to:Y:\Folder1
Therefore the line:
if (opened.path.startsWith(prefix0))
resolves tofalse
and the extension doesn't launch the diff - even though it should.