JetBrains: Add “Successfully connected to Sourcegraph” notification
Created by: vdavid
As @jjinnii designed it in this figma.
It should appear right after saving correct settings in Preferences, and ONLY IF the previous settings were incorrect.
Technical difficulty: we verify the connection in the embedded browser rather than in Java. If the user hadn't opened the “Find with Sourcegraph” popup before the change (which might be typical after an install), the browser is not loaded, so we have no way to know whether the authentication is successful.
Solution ideas:
- Only show the notification if the popup has been opened and if the browser is running.
- Implement token verification in Java