Skip to content

Update colorization support to only return tokens for currently visible ranges#3738

Merged
Colengms merged 22 commits into
masterfrom
coleng/colorization2
Jun 12, 2019
Merged

Update colorization support to only return tokens for currently visible ranges#3738
Colengms merged 22 commits into
masterfrom
coleng/colorization2

Conversation

@Colengms
Copy link
Copy Markdown
Contributor

@Colengms Colengms commented Jun 6, 2019

Prior to this change, colorization would have issues with very large files consuming extensive resources on the TS side. This change maintains the tokens on the native side, and returns tokens only for currently visible regions. A return receipt is returned when handled, to allow throttling of colorization notifications.

Comment thread Documentation/LanguageServer/colorization.md Outdated
Comment thread Documentation/LanguageServer/colorization.md Outdated
Comment thread Documentation/LanguageServer/colorization.md
Comment thread Documentation/LanguageServer/colorization.md Outdated
Colen Garoutte-Carson and others added 2 commits June 7, 2019 18:45
…ed files after reloading window. Prevent redundant reports of visibile range changes.
Comment thread Extension/src/LanguageServer/client.ts
Copy link
Copy Markdown
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

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

Existing open files doesn't work still. When I put a breakpoint here it starts working though, so there's some sort of race condition.

Comment thread Documentation/LanguageServer/colorization.md
Comment thread Documentation/LanguageServer/colorization.md
Comment thread Extension/src/LanguageServer/client.ts Outdated
@Colengms Colengms merged commit c637221 into master Jun 12, 2019
@bobbrow bobbrow deleted the coleng/colorization2 branch June 13, 2019 21:28
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2020
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.

4 participants