zyctree / vscode-diff-default

0 stars 2 forks source link

Mapped Network Paths #5

Open GavIngram opened 2 years ago

GavIngram commented 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:

"diffdefault.rules": [
  ["Y/Folder1", "Y/Folder2"]
]

opened.path resolves to: /Y:/Folder1/file.text prefix[0] resolves to: Y:\Folder1

Therefore the line: if (opened.path.startsWith(prefix0)) resolves to false and the extension doesn't launch the diff - even though it should.

zyctree commented 2 years ago

thanks, seems we need a better way to resolve and replace the path