Repository: microsoft/terminal
File: src/cascadia/WindowsTerminal/IslandWindow.cpp (C++)

Code before:
    {
        return _OnSizing(wparam, lparam);
    }
    case WM_SIZE:
    {
        if (wparam == SIZE_RESTORED || wparam == SIZE_MAXIMIZED)
        {
            _WindowVisibilityChangedHandlers(true);
            _MaximizeChangedHandlers(wparam == SIZE_MAXIMIZED);
        }

        if (wparam == SIZE_MINIMIZED)
        {
            _WindowVisibilityChangedHandlers(false);
            if (_isQuakeWindow)
            {
                ShowWindow(GetHandle(), SW_HIDE);
                return 0;
            }
        }

        // BODGY This is a fix for the upstream:
        //
        // https://github.com/microsoft/microsoft-ui-xaml/issues/3577
        //
        // ContentDialog's don't resize themselves when the XAML island resizes.
        // However, if we manually resize our CoreWindow, that'll actually
        // trigger a resize of the ContentDialog.
        if (const auto& coreWindow{ winrt::Windows::UI::Core::CoreWindow::GetForCurrentThread() })
        {
            if (const auto& interop{ coreWindow.as<ICoreWindowInterop>() })
            {
                HWND coreWindowInterop;
                interop->get_WindowHandle(&coreWindowInterop);
                PostMessage(coreWindowInterop, message, wparam, lparam);
            }
        }

        break;
    }
    case WM_MOVING:
    {
        return _OnMoving(wparam, lparam);
    }
    case WM_MOVE:
    {
        _WindowMovedHandlers();
        break;
    }
    case WM_CLOSE:
    {

Review comment (suggestion):
```suggestion
        // ContentDialogs don't resize themselves when the XAML island resizes.
```

Code after:
    {
        return _OnSizing(wparam, lparam);
    }
    case WM_SIZE:
    {
        if (wparam == SIZE_RESTORED || wparam == SIZE_MAXIMIZED)
        {
            _WindowVisibilityChangedHandlers(true);
            _MaximizeChangedHandlers(wparam == SIZE_MAXIMIZED);
        }

        if (wparam == SIZE_MINIMIZED)
        {
            _WindowVisibilityChangedHandlers(false);
            if (_isQuakeWindow)
            {
                ShowWindow(GetHandle(), SW_HIDE);
                return 0;
            }
        }

        // BODGY This is a fix for the upstream:
        //
        // https://github.com/microsoft/microsoft-ui-xaml/issues/3577
        //
        // ContentDialogs don't resize themselves when the XAML island resizes.
        // However, if we manually resize our CoreWindow, that'll actually
        // trigger a resize of the ContentDialog.
        if (const auto& coreWindow{ winrt::Windows::UI::Core::CoreWindow::GetForCurrentThread() })
        {
            if (const auto& interop{ coreWindow.as<ICoreWindowInterop>() })
            {
                HWND coreWindowInterop;
                interop->get_WindowHandle(&coreWindowInterop);
                PostMessage(coreWindowInterop, message, wparam, lparam);
            }
        }

        break;
    }
    case WM_MOVING:
    {
        return _OnMoving(wparam, lparam);
    }
    case WM_MOVE:
    {
        _WindowMovedHandlers();
        break;
    }
    case WM_CLOSE:
    {