Skip to content

Commit ca6af92

Browse files
committed
[<= 1.22] Do path translation for multiple types of WSL (#18205)
In #18195, we introduced a real `pathTranslationStyle` setting. I'm not backporting that whole thing. (cherry picked from commit e476dd2) Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgU2fsY Service-Version: 1.21
1 parent f4bffcf commit ca6af92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cascadia/TerminalControl/ControlInteractivity.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
734734
// - true if the connection we were created with was a WSL profile.
735735
bool ControlInteractivity::ManglePathsForWsl()
736736
{
737-
return _core->Settings().ProfileSource() == L"Windows.Terminal.Wsl";
737+
const auto source{ _core->Settings().ProfileSource() };
738+
return til::equals_insensitive_ascii(source, L"Windows.Terminal.Wsl") || til::equals_insensitive_ascii(source, L"Microsoft.WSL");
738739
}
739740
}

0 commit comments

Comments
 (0)