mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WSL: compare names ignore case
Both ``\\wsl$\debian`` and ``\\wsl$\Debian`` are supported GitOrigin-RevId: c8be201571cfcf0f4b73d6269a7a3f6e2eff14ab
This commit is contained in:
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 + ")" +
|
||||
|
||||
Reference in New Issue
Block a user