Skip to content

Commit e476dd2

Browse files
authored
[<= 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.
1 parent b97f3c1 commit e476dd2

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
@@ -735,6 +735,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
735735
// - true if the connection we were created with was a WSL profile.
736736
bool ControlInteractivity::ManglePathsForWsl()
737737
{
738-
return _core->Settings().ProfileSource() == L"Windows.Terminal.Wsl";
738+
const auto source{ _core->Settings().ProfileSource() };
739+
return til::equals_insensitive_ascii(source, L"Windows.Terminal.Wsl") || til::equals_insensitive_ascii(source, L"Microsoft.WSL");
739740
}
740741
}

0 commit comments

Comments
 (0)