Project detection not working on WSL windows
See original GitHub issue- I’m sure this issue is not a duplicate.
VS Code instances running on WSL do not seem to auto detect project or workspace settings, this means that opening a project on Windows will set a preset and later on, any project that i open from WSL will be using that preset, the only way to change it is setting up another preset on a Windows project. Icon presets seem to work really well on a single window, but with multiple vscode windows, they just mix and act weirdly, i made a comment in here about presets mixing between to vscode windows tho that is under another discussion, i made searches about WSL and auto detection and couldn’t find anything so i hope this is not an isolated issue, but it would be nice to at least be working on a single WSL project at a time (due to the preset mix) and get auto detection.
In this example i’m opening two workspaces that switch between angular and nestjs preset, both projects are brand new created with @angular/cli and @nestjs/cli
Also on that demo i didn’t try to se this "vsicons.projectDetection.autoReload": true
on the WSL instances but later on i did and the result was the same, nest project stayed with angular preset even after deleting settings.json(workspace) reloading windows, creating a new settings.json(workspace) and setting "vsicons.presets.nestjs": true
in it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
So I found some time to look into this. Things are exactly as I suspected.
Both
vscode
instances use the samevscode-icons
extension simply because we have toldvscode
that it should runvscode-icons
from the local file system and not the remote one (see #2404). If you open theExtensions
explorer you will notice thatvscode-icons
is only installed locally and not onWSL
and thatvscode
does not provide an option to install it inWSL
.Now if you go to your settings (
settings.json
) and add the following:by reloading
vscode
you will now notice an option to installvscode-icons
onWSL
. By doing so you will seevscode-icons
showing up in theWSL
part of theExtensions
explorer.From there on, experiment further.
Hope this helps.
@JimiC I have made this and I could make the installation successful in WSL, but somehow, the extension is appending
C:\
to my project path. This is what the logs show.I’m suspecting this is why my custom icons aren’t loading