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

Moves bracket logic from text model into BracketPairsImpl (IBracketPairs) #136024

Merged
merged 1 commit into from Nov 1, 2021

Conversation

hediet
Copy link
Member

@hediet hediet commented Oct 28, 2021

@alexdima This PR moves all the old bracket pair matching logic into the new IBracketPair interface (and BracketPairImpl class).

The idea is to organize the various aspects of the TextModel into separate classes/interface.

This causes a circular dependency (BracketPairImpl depends on TextModel which depends on BracketPairImpl), but I think that is ok (as long as BracketPairImpl does not access textModel.bracketPairs).

Maybe in the future this could be improved by having some CoreTextModel that just provides the editing experience and the TextModel that composes the CoreTextModel, Tokenization, IBracketPairs and so on.

@hediet hediet added this to the November 2021 milestone Oct 28, 2021
@hediet hediet self-assigned this Oct 28, 2021
@hediet hediet merged commit ee3f7eb into main Nov 1, 2021
@hediet hediet deleted the hediet/extract-bracket-logic-from-text-model branch November 1, 2021 14:30
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2021
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