mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 09:15:38 +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() {
|
protected void initialProcess() {
|
||||||
// prevent case where getDocument() returns null
|
// prevent case where getDocument() returns null
|
||||||
// and causes exception in initialProcess()
|
// and causes exception in initialProcess()
|
||||||
|
// PR 63890
|
||||||
IDocument doc = getDocument();
|
IDocument doc = getDocument();
|
||||||
if (doc != null)
|
if (doc != null)
|
||||||
super.initialProcess();
|
super.initialProcess();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
reconciler.setDelay(1000);
|
//Delay changed and non-incremental reconciler used due to
|
||||||
// reconciler.setIsIncrementalReconciler(false);
|
//PR 130089
|
||||||
|
reconciler.setDelay(500);
|
||||||
|
reconciler.setIsIncrementalReconciler(false);
|
||||||
reconciler.setReconcilingStrategy(new CReconcilingStrategy(fEditor), IDocument.DEFAULT_CONTENT_TYPE);
|
reconciler.setReconcilingStrategy(new CReconcilingStrategy(fEditor), IDocument.DEFAULT_CONTENT_TYPE);
|
||||||
return reconciler;
|
return reconciler;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue