Reindexing closes other project windows

Issue #1807 resolved
Piotr Kożuchowski created an issue

Repro steps:

  1. Have 2 project open in 2 IntelliJ windows
  2. On one project switch connection to different
  3. IC asks to reopen in “This window” or “New window” - chose This Window

What happens:

  • Other project is closed

Expected:

  • Other project is not touched, this project is reopened in the same window.

Comments (4)

  1. Scott Wells repo owner

    This is unfortunately not under my control. In 2020.1, JetBrains changed the API used to close/reopen projects to have this behavior. You have to use New Window for the reopened project to use distinct window. Otherwise This Window applies to the most recently used remaining project window. I've logged a case with JetBrains about this API behavioral change but haven't seen any movement on a fix.

  2. Scott Wells repo owner

    I'm going to resolve this since the only API available to plugin developers has this unfortunate behavior. Hopefully JetBrains either restores the original API behavior or provides a new API with the original behavior at which point I'll switch IC over to use it.

  3. Piotr Kożuchowski reporter
    • edited description

    Realized that reproduction steps are wrong so I’m updating just for clarity - so it’s not reported as separate issue by someone.

  4. Log in to comment