macOS 10.13.6 IntelliJ IDEA 2018.2.2 (Ultimate Edition) Build #IU-182.4129.33, built on August 21, 2018 JRE: 1.8.0_152-release-1248-b8 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Illuminated Cloud 220.127.116.11, Build 20180822 095025
The Anonymous Apex window is too eager to choose a connection that I do not want to use if my project does not have a connection set. In this situation, it always seems to choose the first global connection in its list. I suggest it NOT automatically choose any connection for me in this case.
Worse still, in this case, this unwanted behaviour is repeated for each new tab that is opened in the Anonymous Apex window. Even if the current tab has a working connection, a new tab will try to use the first global connection, when a more intelligent default would be to re-use the connection from the current tab (or, second choice I think, make no selection at all - make the developer explicitly choose).
At best this is an inconvenience that can lead to mistaken actions, but it’s even worse if the first connection is no longer up-to-date since that causes multiple error dialogue boxes to pop-up complaining about invalid connection credentials (that I didn’t want it to use in the first place).
Thanks much for your attention!