feat: add eager extension activation for vim/neovim#193
Merged
Conversation
Add coderm.extensions.eagerActivation setting to force immediate startup activation of specified extensions (default: vscode-neovim and vscodevim). Injects '*' activation event into listed extensions via ImplicitActivationEvents, bypassing normal lazy activation triggers like onCommand:type or onStartupFinished.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
coderm.extensions.eagerActivationsetting to force immediate startup activation of specified extensions. This is critical for vim/neovim extensions where every millisecond of activation latency matters — without this, the first keystroke is handled by VS Code instead of the extension.Changes
coderm.extensions.eagerActivation(default:["asvetliakov.vscode-neovim", "vscodevim.vim"])implicitActivationEvents.ts: AddsetEagerExtensions()method; inject*activation event for listed extensions during_readActivationEvents()abstractExtensionService.ts: Readcoderm.extensions.eagerActivationin constructor and pass toImplicitActivationEventseagerExtensions.ts: Register the new configuration settingcoderm.contribution.ts: Import the new moduleHow it works
Test plan
asvetliakov.vscode-neovimfrom the marketplacecoderm.extensions.eagerActivationappears in Settings UI[]and restart — verify normal (lazy) activation behavior🤖 Generated with Claude Code