Skip to content

Async textmate tokenization - #174443

Merged
Henning Dieterichs (hediet) merged 7 commits into
mainfrom
async-tokenization-2
Feb 20, 2023
Merged

Henning Dieterichs (hediet) merged 7 commits into
mainfrom
async-tokenization-2

Conversation

@hediet

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

Copy link
Copy Markdown
Member

Fixes #147066

Review #174364 first!

TODOs:

  • Release & adopt new vscode-textmate

…xperimental.asyncTokenization" (default false).
@ghost

Deleted user (ghost) commented Feb 15, 2023 •

Copy link
Copy Markdown

As downstream user, what will change in new vscode-textmate? Will it still be UMD & same interface?

If there's an issue or PR to discuss or explain it, do please point me there!

@hediet

Copy link
Copy Markdown
Member Author

As downstream user, what will change in new vscode-textmate? Will it still be UMD & same interface?

Nothing changes!

@ghost

Deleted user (ghost) commented Feb 15, 2023 •

Copy link
Copy Markdown

Sounds great! Will unsub, also some relevant xkcd's to reward you:

xkcd: 1172 - Workflow; xkcd: 2347 - Dependency

@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.

🚀 This looks really good! I left some comments. Some notes, mostly for myself, to double check before we merge this in:

  • check that a text model that is not attached to an editor doesn't do background tokenization
  • check that this works OK on the web
  • check that vscode-textmate is not loaded if the workbench comes up without an editor
  • create build and check that this works in a built product. I think it will definitely not work because we don't package textmate.worker.ts for shipping.

@hediet

Copy link
Copy Markdown
Member Author

create build and check that this works in a built product. I think it will definitely not work because we don't package textmate.worker.ts for shipping.

I need help with this one. I tried to understand how "vs/editor/common/services/editorSimpleWorker.ts" is bundled, but I wasn't able to figure it out.

@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.

👏

@hediet
Henning Dieterichs (hediet) deleted the async-tokenization-2 branch February 20, 2023 13:27
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 6, 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.

Move tokenization to a web worker

3 participants