UpdateFoldings does not update new Tags #141
Labels
No labels
Area-Accessibility
Area-Build
Area-CodeCompletion
Area-Document
Area-Documentation
Area-Editing
Area-Folding
Area-Highlighting
Area-i18n
Area-Indentation
Area-NetFx
Area-Rendering
Area-Search
Area-Snippets
dependencies
duplicate
Feedback Needed
help wanted
invalid
Issue-Bug
Issue-Discussion
Issue-Enhancement
Issue-Performance
Issue-Question
on-hold
Resolution-Answered
Resolution-By Design
Resolution-Duplicate
Resolution-Fixed
Resolution-Won't Fix
Up-for-Grabs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-icsharpcode/AvalonEdit#141
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In order to only have to do a full file parse once, I created a subclass of NewFolding which has some extra metadata and locations of things within the folding sections. When I run the foldings the first time it gets those fantastically, and the subclass of NewFolding is stored in the FoldingSection's Tag. I see in the UpdateFoldings function though that the Tag is only set when a folding is first created. So small changes, which do in fact affect my folding, aren't updating that Tag element and metadata.
I think that it makes sense to keep the Tag in sync. All that would probably be required would be to store the new NewFolding as the tag in the cases in UpdateFoldings when you are just modifying the existing folding and not creating a new one from scratch.
Is there a reason why this isn't or shouldn't be done?