oleg-shilo / Favorites.vscode

VSCode extension for managing Favorites
MIT License
23 stars 6 forks source link

can't use (UNC) network paths, beginning with \\ #48

Open lhemkendreis opened 1 month ago

lhemkendreis commented 1 month ago

Hi 🙂

I encounter the following problem.

I can add a UNC path (on Windows) like \\myserver\d$\path\to\file.txt to my favorites. But when I click on it in the favorites view, it tries to open the path, starting with a single backslash \ instead of \\ and fails to open it. I know this is what happens, because the new editor tab shows the path and complains, that the file does not exist.

I tried to trick the extension, by inserting additional backslashes to the beginning of the file path in my favorites config file, but the extension seems to always reduce them to a single backslash when trying to open the file. ¯_(ツ)_/¯

Can someone please fix this?

I really like the extension, but without this feature I cannot use it 😢

Thanks! 😊

oleg-shilo commented 1 month ago

Will look at it. Txs for reporting.

oleg-shilo commented 1 month ago

Hm... It seems to work OK: capture

Strangly enough when I simply drag and drop the UNC file in VSCode it cannot open it. Not sure how to reproduce it

oleg-shilo commented 1 month ago

Did you add the file manually? By typing in the fav list file? If you did then it's possible that you forgot the file: prefix. Did you?

This is the correct format:

file://<server>/d%24/temp/test.txt