[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Dltk-dev] Re: the new folding code: constantly layouting?
|
if i comment out a line from class: AbstractASTFoldingStructureProvider
then the flickering is gone :
private class ElementChangedListener implements IElementChangedListener {
/*
* @see
* org.eclipse.dltk.core.IElementChangedListener#elementChanged(org.
* eclipse.dltk.core.ElementChangedEvent)
*/
public void elementChanged(ElementChangedEvent e) {
IModelElementDelta delta = findElement(fInput, e.getDelta());
if (delta != null
&& (delta.getFlags() & (IModelElementDelta.F_CONTENT | IModelElementDelta.F_CHILDREN)) != 0) {
// update(createContext(false)); <<<<<<<<<<<<<<<
}
}
Ofcourse new comment area's i create then are not updated as folding blocks (need to reopen the editor)
But somewhere in that code is the culprit
johan
On Tue, Mar 10, 2009 at 14:53, Johan Compagner
<jcompagner@xxxxxxxxx> wrote:
Hi,
in js the new folding code doesnt work quite right.
if i have 3 comment lines like this:
// test 1
// test 2
// test 3
and i fold them then if i type below them. like copy paste or create a new line i see the editor redrawing itself
and my line where i am on (thats below the 3 lines above) looks quickly to be 2 lines below it where it is and then jumps back
This is very fast but very noticeable :(
It seems that the editor expands the comments when i am typing and then collapses it again.
Could be that this is only a js problem, there is also another problem with js and that is that header comments are not matched
I guess this is because in our case headers comments are always js doc (/** xxx */) and not just comments (// xxx )
I will investigate this if i can map it a bit better.
johan