In Visual Studio 2022, it's under Tools -> Options -> Debugging -> General -> Enable the External Sources node in Solution Explorer. Uncheck the checkbox.