WSL: compare names ignore case

Both ``\\wsl$\debian`` and ``\\wsl$\Debian`` are supported

GitOrigin-RevId: c8be201571cfcf0f4b73d6269a7a3f6e2eff14ab
This commit is contained in:
Ilya.Kazakevich
2022-06-11 11:31:36 +00:00
committed by intellij-monorepo-bot
parent 5ca58470f7
commit 5b1ef53f46
@@ -498,7 +498,7 @@ public class WSLDistribution implements AbstractWslDistribution {
public @Nullable @NlsSafe String getWslPath(@NotNull String windowsPath) {
WslPath wslPath = WslPath.parseWindowsUncPath(windowsPath);
if (wslPath != null) {
if (wslPath.getDistributionId().equals(myDescriptor.getMsId())) {
if (wslPath.getDistributionId().equalsIgnoreCase(myDescriptor.getMsId())) {
return wslPath.getLinuxPath();
}
throw new IllegalArgumentException("Trying to get WSL path from a different WSL distribution. Requested path (" + windowsPath + ")" +