message: Bugfix: don't allow closing last tab with middle click
  * Bugfix: don't allow closing last tab with middle click
  (Also add a few of the TODOs for similar areas)
  * Replaced MSFT TODO with GitHub TODO
diff: @@ -630,7 +630,7 @@ namespace winrt::TerminalApp::implementation
  // reloading settings)
  const auto* const p = _settings->FindProfile(tabProfile);
  - // TODO: MSFT:21268795: Need a better story for what should happen when the last tab is closed.
  + // TODO: GitHub:627: Need a better story for what should happen when the last tab is closed.
  if (p != nullptr && p->GetCloseOnExit() && _tabs.size() > 1)
  {
  _RemoveTabViewItem(tabViewItem);
  @@ -662,6 +662,7 @@ namespace winrt::TerminalApp::implementation
  // - Close the currently focused tab. Focus will move to the left, if possible.
  void App::_CloseFocusedTab()
  {
  + // TODO: GitHub:627: Need a better story for what should happen when the last tab is closed.
  if (_tabs.size() > 1)
  {
  int focusedTabIndex = _GetFocusedTabIndex();
  @@ -770,6 +771,7 @@ namespace winrt::TerminalApp::implementation
  // - eventArgs: the event's constituent arguments
  void App::_OnTabClosing(const IInspectable& sender, const MUX::Controls::TabViewTabClosingEventArgs& eventArgs)
  {
  + // TODO: GitHub:627: Need a better story for what should happen when the last tab is closed.
  // Don't allow the user to close the last tab ..
  // .. yet.
  if (_tabs.size() > 1)
  @@ -825,8 +827,12 @@ namespace winrt::TerminalApp::implementation
  void App::_OnTabClick(const IInspectable& sender, const Windows::UI::Xaml::Input::PointerRoutedEventArgs& eventArgs)
  {
  if (eventArgs.GetCurrentPoint(_root).Properties().IsMiddleButtonPressed())
  + {
  + // TODO: GitHub:627: Need a better story for what should happen when the last tab is closed.
  + if (_tabs.size() > 1)
  {
  _RemoveTabViewItem(sender);
  + }
  eventArgs.Handled(true);
  }
  }
  