Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 493081

Summary: Resource is out of sync with the server
Product: [ECD] Orion Reporter: Sebastian Pahnke <pahnke.sebastian>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 12.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Sebastian Pahnke CLA 2016-05-05 09:17:06 EDT
(Only tested with the codeEditWidget)

var foo = 'test';
foo. //<- content assist here

Ctrl-/Cmd-click on the documentation link (e.g. for charAt) to open the link in a new tab and open it to read the documentation. Switch back to the editor tab and click on one of the proposals to insert it. The following confirmation dialog appears:

Resource is out of sync with the server. Do you want to load it anyway? This will overwrite your local changes.

If you click OK you lose all your changes because of a reload; aside from the dialog being extremely annoying. This behavior must have been introduced recently, because I didn't see such a dialog a few weeks back. 

AFAICT, the code which opens the confirmation (orion/inputManager.load: !editor.isDirty() || window.confirm(messages.loadOutOfSync)) has been there for a very long time, so the cause must be somewhere else.
Comment 1 Sebastian Pahnke CLA 2016-05-27 09:28:36 EDT
It seems that just hovering over a link in the proposal tooltip is enough to reproduce this behavior.
Comment 2 Sebastian Pahnke CLA 2016-05-27 09:33:02 EDT
I correct: Just opening the content assist and then clicking on a proposal is enough to reproduce!
Comment 3 Sebastian Pahnke CLA 2016-06-16 03:56:14 EDT
I don't know which commit did it, but the dialog is gone now. Closing.