Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] folding and a file change underneath the editor...

Hi,

i am currently looking into an issue that is biting use a bit because we change js files sometimes in code after a user saved it
(we need to have some extra info)

Because of that the editor reloads the file via via..
But then all the folding stuff is gone even the initial folding (dont care to much about the real current state of the folding it would be nice but not a big pro)
I tested it and even the java editor has that problem so i guess it is a bit deeper and not that easy..

But just thinking about the problem it seem to me that it should treat such a thing just like a open script.. (only the cursor is kept at the right place)
But the stacktraces are completely different and the :

public final void initialize() {
        update(createInitialContext());
    }

of AbstractASTFoldingStructureProvider is called only once..
And if i call it my self by listening to document changes it get the weirdest errors :(

Any idea's or is this not really fixable right now?

johan


Back to the top