From ddcc97ddaa02b7a9d057dc8b0e64b4fc85f866d5 Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Tue, 31 Oct 2017 09:38:43 -0700 Subject: [PATCH] Powershell command for additional distro filesystems Credit to @icylogic for providing this Powershell command to discover additional distros' filesystems --- .../LanguageServer/Windows Subsystem for Linux.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/LanguageServer/Windows Subsystem for Linux.md b/Documentation/LanguageServer/Windows Subsystem for Linux.md index 1443d44748..915b50e618 100644 --- a/Documentation/LanguageServer/Windows Subsystem for Linux.md +++ b/Documentation/LanguageServer/Windows Subsystem for Linux.md @@ -45,7 +45,15 @@ For developers using Ubuntu with the current version of WSL released with the Fa The `includePath` above includes the system header paths that gcc uses for C++ projects and matches the output of `gcc -v -E -x c++ - < /dev/null`. The intelliSenseMode should be set to **"clang-x64"** to get WSL projects to work properly with IntelliSense. -Note that `${localappdata}/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/` is the path to the root of the Ubuntu filesystem. This will be different if you are using a different distro. +Note that `${localappdata}/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/` is the path to the root of the Ubuntu filesystem. This will be different if you are using a different distro. You can discover the paths to your distro's filesystem by using this handy Powershell command: + +```Powershell +PS R:\> ($(get-appxpackage).PackageFamilyName | findstr /i 'SUSE Ubuntu') -replace '^', "$`{localappdata`}/Packages/" + +${localappdata}/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc +${localappdata}/Packages/46932SUSE.openSUSELeap42.2_022rs5jcyhyac +${localappdata}/Packages/46932SUSE.SUSELinuxEnterpriseServer12SP2_022rs5jcyhyac +``` For C projects, simply remove the c++ lines: