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(codelens): Handle $emitCodeLens event #3003

Merged
merged 3 commits into from
Jan 16, 2021

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Jan 16, 2021

Issue: The codelens feature for the VersionLens plugin wasn't showing up until the editor is scrolled.

Defect: Some extensions, like VersionLens will change codelens on the fly, or via a command, and they would message that to the editor via the exthost $emitCodeLens event. We weren't handling this event, so we didn't know to refresh the codelens.

Fix: Handle the $emitCodeLens event, wire up to the provider / subscription via an eventTick property - always refresh the subscription when that property changes.

This fix enables the VersionLens plugin:

2021-01-16 09 48 53

Related #1058

@bryphe bryphe added the N-screenshot Notes: Screenshot label Jan 16, 2021
@bryphe bryphe added this to the 0.5.3 milestone Jan 16, 2021
@bryphe bryphe merged commit 4cafcb8 into master Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N-screenshot Notes: Screenshot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant