Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: slightly improve perf by caching vscode context #3293

Merged
merged 3 commits into from
Dec 27, 2018

Conversation

jpoon
Copy link
Member

@jpoon jpoon commented Dec 26, 2018

What this PR does / why we need it:

The following operation vscode.commands.executeCommand('setContext', ... takes roughly 1s to complete. Cache the value and only update vscode context when value changes.

We had done this for some of the context values. This PR does it for all context values.

Which issue(s) this PR fixes

Probably doesn't wholly address #1714, but it's a step in that direction.

Special notes for your reviewer:

  • sorted imports

@xconverge
Copy link
Member

This is a REALLY good idea, nice job

@jpoon jpoon force-pushed the cache_vscode_context branch from addf012 to 08fa2cd Compare December 27, 2018 08:27
@jpoon jpoon merged commit b392581 into master Dec 27, 2018
@jpoon jpoon deleted the cache_vscode_context branch December 27, 2018 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants