Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use chars instead of lines indexes #679

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

obask
Copy link
Collaborator

@obask obask commented Nov 7, 2024

Our previouis version was marking a previouis
and the following blocks as modified, while it's
not needed in most cases.

We can use use 0.24.0 inputIndex parameter to
simply keep an index from char to block and avoid
splitting lines and doing complicated search for
a modified substring.

@obask obask requested review from hamen and rock3r November 7, 2024 16:45
@obask obask self-assigned this Nov 7, 2024
@obask obask requested a review from jrlogsdon November 7, 2024 16:46
@obask obask force-pushed the use-input-index-for-fast-edits branch from 51850ee to 2347290 Compare November 7, 2024 17:02
Copy link
Collaborator

@jrlogsdon jrlogsdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[GitHub user error on my end], but I added a comment on your commit at instead of the comment on your PR: 2347290#diff-67e63e6b07196973eeae520d175d19e0bc5b602c5d8f8c8c7ae3b10a80c20857R83

Let me know what you think.

@obask
Copy link
Collaborator Author

obask commented Nov 8, 2024

[GitHub user error on my end], but I added a comment on your commit at instead of the comment on your PR: 2347290#diff-67e63e6b07196973eeae520d175d19e0bc5b602c5d8f8c8c7ae3b10a80c20857R83

Let me know what you think.

Sounds good, thanks for your suggestions! Much of the code structure reflects the unit tests, which is not ideal. I plan to modify the tests to assert against data classes while splitting logic into more fine-grained sub-functions, which should reduce complexity.

@obask obask marked this pull request as draft November 8, 2024 11:51
@rock3r
Copy link
Collaborator

rock3r commented Nov 25, 2024

@obask planning to get this into 0.27? If so the deadline is tomorrow :)

Our previouis version was marking a previouis
and the following blocks as modified, while it's
not needed in most cases.

We can use use 0.24.0 inputIndex parameter to
simply keep an index from char to block and avoid
splitting lines and doing complicated search for
a modified substring.
@hamen hamen force-pushed the use-input-index-for-fast-edits branch from 2347290 to bc595b2 Compare November 25, 2024 17:01
@obask
Copy link
Collaborator Author

obask commented Nov 25, 2024

@obask planning to get this into 0.27? If so the deadline is tomorrow :)

I may try to convert tests to data classes, but won't refactor the rest before "the merge"

@rock3r rock3r added the feature New feature or request label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants