Community
Participate
Working Groups
When activating an editor, the AST doesn't start building unless something triggers it (source hover, etc). Features like hyperlinks might not want to wait for the AST to be built in order to prevent the UI from blocking. Fortunately, there is a non AST-based fallback for the Open Element hyperlink in 7.0.2, see bug 326418. But this method does not handle overloaded operators, see bug 338004. Also, for other features, it might not be possible to have such a fall-back, for example bug 319480. Starting to build the AST when the editor gets activated will remove the need to trigger the AST build manually. There would still be a delay for the features to become available while the AST is being computed but it would still be an improvement.
Created attachment 189677 [details] Reconcile on editor activation This patch makes the editor reconcile on (re-)activation. Originally this was avoided because it seemed not necessary, but things have changed.
I'm surprised that it's only a one line change. It works great, thank you.
Committed the one line change.
*** cdt cvs genie on behalf of aleherbau *** Bug 338045 - AST should start building when an editor becomes active [*] CReconciler.java 1.13 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CReconciler.java?root=Tools_Project&r1=1.12&r2=1.13