#DevHack: Check if a VSCode extension is running in WSL
For the Front Matter Visual Studio Code extension, I needed to know if the current instance opened a Windows Subsystem for Linux (WSL) located project folder. By knowing this context, I could ensure that certain functionality works similarly to the default behavior on Windows and macOS. The solution The solution is a very simple one-liner:
Read more