Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Avoid applying edits to cached colorization tokens until needed#3793

Merged
Colengms merged 4 commits into
mastermicrosoft/vscode-cpptools:masterfrom
coleng/delay_update_editsmicrosoft/vscode-cpptools:coleng/delay_update_editsCopy head branch name to clipboard
Jun 18, 2019
Merged

Avoid applying edits to cached colorization tokens until needed#3793
Colengms merged 4 commits into
mastermicrosoft/vscode-cpptools:masterfrom
coleng/delay_update_editsmicrosoft/vscode-cpptools:coleng/delay_update_editsCopy head branch name to clipboard

Conversation

@Colengms

Copy link
Copy Markdown
Contributor

Avoid applying edits to cached tokens unless/until they need to be reapplied. (Similar fix applied to native side)

Avoid setting background color of decoration if same as editor background, to avoid selection highlighting issue.

Ensure editVersion is always increment per onDidChangeTextDocument, to ensure in sync with native side. (Has corresponding change on native side)

Comment thread Extension/src/LanguageServer/colorization.ts Outdated
@Colengms

Copy link
Copy Markdown
Contributor Author

This will address #3780 for themes with background colors equal to the editor background color. Selection highlighting will still fail for background colors that differs from the editor background color.

@Colengms

Copy link
Copy Markdown
Contributor Author

This may improve #3781 . There is definitely overhead involved for various reasons. But, this change may improve performance when editing as it avoids adjusted cached token ranges while editing, deferring that work until/unless cache tokens need to be reapplied (i.e. change editor visibility).

@Colengms Colengms merged commit b2b0ad3 into master Jun 18, 2019
@sean-mcmanus sean-mcmanus deleted the coleng/delay_update_edits branch June 18, 2019 21:24
@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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.