Skip to content

Refactors tokenization to support custom background tokenizer. - #174364

Merged
Henning Dieterichs (hediet) merged 3 commits into
mainfrom
hediet/async-tokenization
Feb 15, 2023
Merged

Henning Dieterichs (hediet) merged 3 commits into
mainfrom
hediet/async-tokenization

Conversation

@hediet

@hediet Henning Dieterichs (hediet) commented Feb 14, 2023 •

Copy link
Copy Markdown
Member

I recommend VS Code to review the diff.

Alexandru Dima (@alexdima) It would be awesome if you could carefully review this change.

The textmate tokenization feature that builds on this refactoring doesn't need a very careful review, as we can add an experimental setting (default false) for that.

@alexdima Alexandru Dima (alexdima) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 LGTM. I left comments for some small things.

this._semanticTokens.flush();
}

// TODO@hediet TODO@alexdima what is the difference between this and acceptEdit?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 I agree that they should be merged, right now acceptEdit only updates tokens and handleDidChangeContent only updates states. Maybe in a separate cleanup PR

@hediet
Henning Dieterichs (hediet) deleted the hediet/async-tokenization branch February 15, 2023 14:14
Cristopher Claeys (c-claeys) pushed a commit to c-claeys/vscode that referenced this pull request Feb 16, 2023
…ization

Refactors tokenization to support custom background tokenizer.
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 1, 2023
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.

3 participants