Created by: levrik
The logic here is the following:
- If we can find the VS Code Remote server installed in WSL, check if some VS Code process is running on the Windows-side and execute
code
(orcode-insiders
) on WSL side - If we're trying to open a file under
/mnt/
we'll use the normal Windows detection with conversion of the Windows file path to a WSL file path - For anything else we fall back to the normal Linux detection (which will work with terminal editors only, except for users running some GUI apps with a x server but this is untested)
Seeing this in action
Inside WSL filesystem with VS Code open:
Inside Windows filesystem with Notepad++ open: