Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

409 improve tree comment processing #421

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

atimmer
Copy link
Contributor

@atimmer atimmer commented Dec 10, 2019

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Test instructions

This PR can be tested by following these steps:

Impact check

  • This PR affects the following parts of the plugin, which may require extra testing:
    *

UI changes

  • This PR changes the UI in the plugin. I have added the 'UI change' label to this PR.

Quality assurance

  • I have tested this code to the best of my abilities
  • I have added unittests to verify the code works as intended

Fixes #

Formatting after comments wouldn't take the comment length into
account for their position within the text container. This fixes that
so comments are taken into account for the current offset, which will
result in correct offsets on the formatting elements.
When a comment would be nested within a piece of formatting our custom
tree adapter would not return the correct children. This resulted in
the location information not being present on the resulting tree. That
crashed our later functions that relied on the location information
being there.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant