mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 05:15:43 +02:00
Changed reconciler to be non-incremental due to the latency that is
incurred as part of the editor close operation. PR 130089
This commit is contained in:
parent
9222a14bd9
commit
de00c8a6af
1 changed files with 5 additions and 2 deletions
|
@ -226,13 +226,16 @@ public class CSourceViewerConfiguration extends TextSourceViewerConfiguration {
|
|||
protected void initialProcess() {
|
||||
// prevent case where getDocument() returns null
|
||||
// and causes exception in initialProcess()
|
||||
// PR 63890
|
||||
IDocument doc = getDocument();
|
||||
if (doc != null)
|
||||
super.initialProcess();
|
||||
}
|
||||
};
|
||||
reconciler.setDelay(1000);
|
||||
// reconciler.setIsIncrementalReconciler(false);
|
||||
//Delay changed and non-incremental reconciler used due to
|
||||
//PR 130089
|
||||
reconciler.setDelay(500);
|
||||
reconciler.setIsIncrementalReconciler(false);
|
||||
reconciler.setReconcilingStrategy(new CReconcilingStrategy(fEditor), IDocument.DEFAULT_CONTENT_TYPE);
|
||||
return reconciler;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue