My access to the filesystem for our web server starts one folder deeper than the web server's root. So relative paths in our HTML look like this, for example:
<link href="/division/css/style.css" rel="stylesheet" />
But the path to that same file in my filesystem is:
s:\css\style.css
So whenever I CTRL-click
on something in the editor I get an error because VScode is trying to open:
s:\division\css\style.css
But that doesn't exist. EDIT 1: my path does not include \division
I feel like I'm missing something obvious, but I've googled for hours and haven't found a solution to resolve this, such as a filter that strips "\division"
from the filesystem paths or a mapping setting that tells VScode that relative path "/division"
exists at S:
.
EDIT 2: The division
folder exists in the root of the share, and you can't map a drive to the root of a share ( \\server\
, while allowed in explorer, isn't allowed in drive mappings). Neither would VScode allow me to open \\server\
as a folder. I tried creating a folder placeholder folder on my local drive containing another folder called division
with a symlink inside that to \\server\division
, while this looked like it worked in VScode, CTRL-Clicking
on a link wouldn't work, it says the file doesn't exist. It looked like it wouldn't follow symlinks.