-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUN: show build error balloon over proper tool window #7792
Conversation
Previously, build manager showed build error balloon over `Messages` tool window tab for some reason. But the plugin doesn't interact with this tool window at all and prints all build output to `Build` tool window. Moreover, in most cases `Messages` tool window doesn't have any active tab and a user can't even open it. It's rather confusing After these changes the plugin will show build error balloon over `Build` tool window tab to be consistent with build output and not confuse users
@@ -270,10 +268,9 @@ object CargoBuildManager { | |||
notification.notify(project) | |||
|
|||
if (messageType === MessageType.ERROR) { | |||
MessageView.SERVICE.getInstance(project) // register ToolWindowId.MESSAGES_WINDOW |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that we don't need call BuildContentManager.getInstance(project).getOrCreateToolWindow()
here instead.
@mchernyavsky why did we call it here before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. It is copypasted from CidrBuild.showBuildNotification
:)
For QA: I've changed some code with tool window initialization, so it would be cool to check not only balloon location but also that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
bors r=mchernyavsky |
Build succeeded: |
Previously, build manager showed build error balloon over
Messages
tool window tab for some reason.But the plugin doesn't interact with this tool window at all and prints all build output to
Build
tool window.Moreover, in most cases
Messages
tool window doesn't have any active tab and a user can't even open it. It's rather confusingAfter these changes, the plugin will show build error balloon over
Build
tool window tab to be consistent with build output and not confuse userschangelog: Show build error balloon over
Build
tool window instead ofMessages
one