Skip to content

Move tokenization to a web worker #147066

@hediet

Description

@hediet

Also see #77140

Plan of attack:

  • Adopt vscode-textmate refactorings in vscode #167288
  • Make sure rule ids are stable by initializing injection rules eagerly
  • Tokenize in the webworker
  • Send over states by diffing against the state of the previous line. Send the delta as pop(n), push(state) instructions.

Sync tokenization:

Code_-_OSS_RQiEvFdPla.mp4

Async tokenization:

Code_-_OSS_owfdHXRTpY.mp4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions