| Summary: | Quickfix for missing library in the .tern-project file doesn't close | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
| Component: | Editor | Assignee: | Project Inbox <orion.editor-inbox> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | curtis.windatt.public | ||||
| Version: | 12.0 | ||||||
| Target Milestone: | 13.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Olivier Thomann
You need to move the mouse to close the dialog shown for the quickfix. Michael, this issue is reported by Steve. I tried on orion.eclipse.org and I could reproduce the fact that the dialog doesn't close when the quickfix is invoked without moving the mouse. Created attachment 263936 [details]
Proposed patch
This patch makes sure that we don't add twice the same key in the libs array if the user clicks multiple times before the dialog closes (mouse move). Michael, if you see a good way to close the dialog, this might not be needed, otherwise this would prevent duplicate entries in the libs array.
(In reply to Olivier Thomann from comment #3) > Created attachment 263936 [details] > Proposed patch > > This patch makes sure that we don't add twice the same key in the libs array > if the user clicks multiple times before the dialog closes (mouse move). > Michael, if you see a good way to close the dialog, this might not be > needed, otherwise this would prevent duplicate entries in the libs array. The dialog closing is done in the platform side of things: specifically in tooltip.js and hover.js. Perhaps there is an underlying exception that is causing the close to not happen? I am not sure if there is anything we can do. When you use the quickfix to remove an unused function, the tooltip is closed because the model of the current editor is changed. In this case, the current file is not modified. So there is no "onSelection" event that will end up closing the tooltip. So any quickfix that doesn't "modify" the current editor might have the same issue. In this case, the tooltip is closed on mouse move. Moving to the editor component as this is where the closing should happen. Fixed with 496020 *** This bug has been marked as a duplicate of bug 496020 *** |